From d1024b559c44a143eca214fb8732001080e8b037 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 6 Dec 2024 17:33:40 -0500 Subject: Change output format to zstd compressed Godot serialized variant --- generator/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'generator/CMakeLists.txt') 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 @@ cmake_minimum_required (VERSION 3.1) project (generator) +find_package(PkgConfig) +pkg_check_modules(libzstd libzstd REQUIRED) + add_subdirectory(vendor/fmt) -include_directories(vendor/hkutil vendor/fmt/include) +include_directories(vendor/hkutil vendor/fmt/include ${libzstd_INCLUDE_DIRS}) +link_directories(${libzstd_LIBRARY_DIRS}) -add_executable(generator generator.cpp main.cpp) +add_executable(generator generator.cpp main.cpp godot_variant.cpp) set_property(TARGET generator PROPERTY CXX_STANDARD 17) set_property(TARGET generator PROPERTY CXX_STANDARD_REQUIRED ON) -target_link_libraries(generator fmt) +target_link_libraries(generator fmt ${libzstd_LIBRARIES}) -- cgit 1.4.1