59157ff1a5
Still work to do for derived types components, array specs, type-bound procedures, etc. Added executable type-test to the cmake file which exercises some of the basic functionality. Modified the Makefile so that "make Debug" does a cmake build. Original-commit: flang-compiler/f18@02e8c4c867 Reviewed-on: https://github.com/flang-compiler/f18/pull/3 Tree-same-pre-rewrite: false
23 lines
615 B
CMake
23 lines
615 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 type.cc idioms.cc attr.cc)
|