diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/CMakeLists.txt	Tue Aug 17 11:19:54 2021 +0200
@@ -0,0 +1,22 @@
+cmake_minimum_required (VERSION 3.14)
+set(PROJECT templater)
+
+include_directories (${CMAKE_CURRENT_SOURCE_DIR}/include)
+
+set(common_src
+    templater.cpp
+    dictionary.cpp
+    templater.h
+)
+
+add_library(${PROJECT} STATIC ${common_src})
+
+target_link_libraries(${PROJECT} cxxtools common tntdb ${Python3_LIBRARIES})
+
+find_package(Boost REQUIRED)
+message("Boost is in:" ${Boost_INCLUDE_DIRS})
+include_directories(${Boost_INCLUDE_DIRS})
+link_directories(${Boost_LIBRARY_DIRS})
+
+add_executable(template_compiler main.cpp)
+target_link_libraries(template_compiler ${PROJECT} boost_filesystem)