summary refs log tree commit diff stats
path: root/generator/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'generator/CMakeLists.txt')
-rw-r--r--generator/CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/generator/CMakeLists.txt b/generator/CMakeLists.txt index fb5dc3c..b6d3c42 100644 --- a/generator/CMakeLists.txt +++ b/generator/CMakeLists.txt
@@ -1,11 +1,15 @@
1cmake_minimum_required (VERSION 3.1) 1cmake_minimum_required (VERSION 3.1)
2project (generator) 2project (generator)
3 3
4find_package(PkgConfig)
5pkg_check_modules(libzstd libzstd REQUIRED)
6
4add_subdirectory(vendor/fmt) 7add_subdirectory(vendor/fmt)
5 8
6include_directories(vendor/hkutil vendor/fmt/include) 9include_directories(vendor/hkutil vendor/fmt/include ${libzstd_INCLUDE_DIRS})
10link_directories(${libzstd_LIBRARY_DIRS})
7 11
8add_executable(generator generator.cpp main.cpp) 12add_executable(generator generator.cpp main.cpp godot_variant.cpp)
9set_property(TARGET generator PROPERTY CXX_STANDARD 17) 13set_property(TARGET generator PROPERTY CXX_STANDARD 17)
10set_property(TARGET generator PROPERTY CXX_STANDARD_REQUIRED ON) 14set_property(TARGET generator PROPERTY CXX_STANDARD_REQUIRED ON)
11target_link_libraries(generator fmt) 15target_link_libraries(generator fmt ${libzstd_LIBRARIES})