summaryrefslogtreecommitdiff
path: root/cmake/DemoTools.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/DemoTools.cmake')
-rw-r--r--cmake/DemoTools.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/DemoTools.cmake b/cmake/DemoTools.cmake
index e83a384..d61efc1 100644
--- a/cmake/DemoTools.cmake
+++ b/cmake/DemoTools.cmake
@@ -6,9 +6,10 @@ if(DEFINED ASSET_PACKER_PATH)
set(ASSET_PACKER_CMD ${ASSET_PACKER_PATH})
set(ASSET_PACKER_DEPENDS ${ASSET_PACKER_PATH})
else()
- add_executable(asset_packer tools/asset_packer.cc)
+ add_executable(asset_packer tools/asset_packer.cc src/util/ans.cc)
+ target_compile_definitions(asset_packer PRIVATE ANS_ENABLE_ENCODER)
target_link_libraries(asset_packer PRIVATE procedural)
- target_include_directories(asset_packer PRIVATE third_party)
+ target_include_directories(asset_packer PRIVATE third_party src)
set(ASSET_PACKER_CMD $<TARGET_FILE:asset_packer>)
set(ASSET_PACKER_DEPENDS asset_packer)
endif()