summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt15
1 files changed, 6 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1e4582b..21eaaac 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,14 +57,10 @@ else()
list(APPEND DEMO_LIBS pthread m dl)
endif()
-option(DEMO_BUILD_TOOLS "Build tools" OFF)
-
-# Asset Packing Tool
-if(DEMO_BUILD_TOOLS OR NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/src/assets_data.cc)
- add_executable(asset_packer
- tools/asset_packer.cc
- )
-endif()
+# Asset Packing Tool (Always needed for build)
+add_executable(asset_packer
+ tools/asset_packer.cc
+)
# Configure DEMO asset generation
set(DEMO_ASSETS_TXT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/assets/final/demo_assets.txt)
@@ -184,6 +180,7 @@ if(DEMO_BUILD_TESTS)
endif()
# Tools
+option(DEMO_BUILD_TOOLS "Build tools" OFF)
if(DEMO_BUILD_TOOLS)
add_executable(spectool
tools/spectool.cc
@@ -216,4 +213,4 @@ add_custom_target(final
DEPENDS demo64k
COMMENT "Generating assets and performing final assembly (crunching)..."
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
-) \ No newline at end of file
+)