e065e5b510
The are now in new namespace and directory, "semantics", similar to "parser". Original-commit: flang-compiler/f18@115a1341e2 Reviewed-on: https://github.com/flang-compiler/f18/pull/5
23 lines
654 B
CMake
23 lines
654 B
CMake
cmake_minimum_required(VERSION 3.9.0)
|
|
|
|
set(GCC /home/sw/thirdparty/gcc/gcc-7.3.0/linux86-64/redhat)
|
|
set(CMAKE_CXX_COMPILER "${GCC}/bin/g++")
|
|
set(CMAKE_INSTALL_RPATH "${GCC}/lib64")
|
|
set(CMAKE_BUILD_WITH_INSTALL_RPATH true)
|
|
|
|
project(f18)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++17")
|
|
|
|
set(SOURCES
|
|
tools/f18/f18.cc
|
|
lib/parser/char-buffer.cc
|
|
lib/parser/idioms.cc
|
|
lib/parser/message.cc
|
|
lib/parser/parse-tree.cc
|
|
lib/parser/position.cc
|
|
lib/parser/preprocessor.cc
|
|
lib/parser/prescan.cc
|
|
lib/parser/source.cc
|
|
)
|
|
add_executable(f18 ${SOURCES})
|
|
add_executable(type-test lib/semantics/type.cc lib/semantics/attr.cc lib/parser/idioms.cc)
|