diff options
Diffstat (limited to 'generator/CMakeLists.txt')
-rw-r--r-- | generator/CMakeLists.txt | 10 |
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 @@ | |||
1 | cmake_minimum_required (VERSION 3.1) | 1 | cmake_minimum_required (VERSION 3.1) |
2 | project (generator) | 2 | project (generator) |
3 | 3 | ||
4 | find_package(PkgConfig) | ||
5 | pkg_check_modules(libzstd libzstd REQUIRED) | ||
6 | |||
4 | add_subdirectory(vendor/fmt) | 7 | add_subdirectory(vendor/fmt) |
5 | 8 | ||
6 | include_directories(vendor/hkutil vendor/fmt/include) | 9 | include_directories(vendor/hkutil vendor/fmt/include ${libzstd_INCLUDE_DIRS}) |
10 | link_directories(${libzstd_LIBRARY_DIRS}) | ||
7 | 11 | ||
8 | add_executable(generator generator.cpp main.cpp) | 12 | add_executable(generator generator.cpp main.cpp godot_variant.cpp) |
9 | set_property(TARGET generator PROPERTY CXX_STANDARD 17) | 13 | set_property(TARGET generator PROPERTY CXX_STANDARD 17) |
10 | set_property(TARGET generator PROPERTY CXX_STANDARD_REQUIRED ON) | 14 | set_property(TARGET generator PROPERTY CXX_STANDARD_REQUIRED ON) |
11 | target_link_libraries(generator fmt) | 15 | target_link_libraries(generator fmt ${libzstd_LIBRARIES}) |