summaryrefslogtreecommitdiff
path: root/omegalib/omegacalc/CMakeLists.txt
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-19 11:52:51 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-09-19 11:52:51 -0600
commit372c92e7c1901dd7bdd1d2fd48bff205c31dca2d (patch)
tree439073a6481f50b26e2e881999cc568619628987 /omegalib/omegacalc/CMakeLists.txt
parent62f7acd88465f4f20b9b25c3f7edd4e3b7ce453b (diff)
downloadchill-372c92e7c1901dd7bdd1d2fd48bff205c31dca2d.tar.gz
chill-372c92e7c1901dd7bdd1d2fd48bff205c31dca2d.tar.bz2
chill-372c92e7c1901dd7bdd1d2fd48bff205c31dca2d.zip
remove omegacalc as subproject
Diffstat (limited to 'omegalib/omegacalc/CMakeLists.txt')
-rw-r--r--omegalib/omegacalc/CMakeLists.txt34
1 files changed, 0 insertions, 34 deletions
diff --git a/omegalib/omegacalc/CMakeLists.txt b/omegalib/omegacalc/CMakeLists.txt
deleted file mode 100644
index 05e2988..0000000
--- a/omegalib/omegacalc/CMakeLists.txt
+++ /dev/null
@@ -1,34 +0,0 @@
-set(OC_VERSION 2.2.3)
-
-find_package(BISON)
-find_package(FLEX)
-
-FLEX_TARGET(OCScanner src/parser.ll ${CMAKE_CURRENT_BINARY_DIR}/lex.yy.cc COMPILE_FLAGS "-+")
-BISON_TARGET(OCParser src/parser.yy ${CMAKE_CURRENT_BINARY_DIR}/parser.tab.cc COMPILE_FLAGS "-t -d")
-ADD_FLEX_BISON_DEPENDENCY(OCScanner OCParser)
-
-include_directories(
- ${CMAKE_CURRENT_BINARY_DIR}
- include
- ${OMEGAROOT}/omega/include
- ${OMEGAROOT}/codegen/include
- )
-
-string(TIMESTAMP build_date "\\\"%m/%d/%Y\\\"")
-
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBUILD_CODEGEN -DOC_VERSION=\"\\\"OC_VERSION\\\"\" -DOC_BUILD_DATE=\"${build_date}\"")
-
-add_executable(omegacalc
- EXCLUDE_FROM_ALL
- src/AST.cc
- src/myflex.cc
- ${FLEX_OCScanner_OUTPUTS}
- ${BISON_OCParser_OUTPUTS}
- )
-
-add_dependencies(omegacalc omega codegen)
-target_link_libraries(omegacalc omega codegen)
-
-install(TARGETS omegacalc
- DESTINATION bin
- COMPONENT omegacalc OPTIONAL)