[flang] Add CMakeLists.txt and .gitignore
authorTim Keith <tkeith@nvidia.com>
Wed, 31 Jan 2018 00:37:59 +0000 (16:37 -0800)
committerTim Keith <tkeith@nvidia.com>
Wed, 31 Jan 2018 00:37:59 +0000 (16:37 -0800)
Original-commit: flang-compiler/f18@d9a1ea4c49893df5917170270cf6ef5d1880f6ea
Tree-same-pre-rewrite: false

flang/.gitignore [new file with mode: 0644]
flang/CMakeLists.txt [new file with mode: 0644]

diff --git a/flang/.gitignore b/flang/.gitignore
new file mode 100644 (file)
index 0000000..bbdc1a2
--- /dev/null
@@ -0,0 +1,3 @@
+Debug
+Release
+tags
diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2178e72
--- /dev/null
@@ -0,0 +1,24 @@
+cmake_minimum_required(VERSION 3.9.0)
+project(f18)
+
+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)
+
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++17")
+
+set(SOURCES
+  char-buffer.cc
+  f2018-demo.cc
+  idioms.cc
+  message.cc
+  parse-tree.cc
+  position.cc
+  preprocessor.cc
+  prescan.cc
+  source.cc
+)
+add_executable(f18 ${SOURCES})
+
+add_executable(type-test type.cc idioms.cc)