Mercurial > thymian
comparison templates/CMakeLists.txt @ 0:a4671277546c tip
created the repository for the thymian project
| author | ferencd |
|---|---|
| date | Tue, 17 Aug 2021 11:19:54 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:a4671277546c |
|---|---|
| 1 cmake_minimum_required (VERSION 3.14) | |
| 2 set(PROJECT templater) | |
| 3 | |
| 4 include_directories (${CMAKE_CURRENT_SOURCE_DIR}/include) | |
| 5 | |
| 6 set(common_src | |
| 7 templater.cpp | |
| 8 dictionary.cpp | |
| 9 templater.h | |
| 10 ) | |
| 11 | |
| 12 add_library(${PROJECT} STATIC ${common_src}) | |
| 13 | |
| 14 target_link_libraries(${PROJECT} cxxtools common tntdb ${Python3_LIBRARIES}) | |
| 15 | |
| 16 find_package(Boost REQUIRED) | |
| 17 message("Boost is in:" ${Boost_INCLUDE_DIRS}) | |
| 18 include_directories(${Boost_INCLUDE_DIRS}) | |
| 19 link_directories(${Boost_LIBRARY_DIRS}) | |
| 20 | |
| 21 add_executable(template_compiler main.cpp) | |
| 22 target_link_libraries(template_compiler ${PROJECT} boost_filesystem) |
