summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-09 17:35:32 +0100
committerskal <pascal.massimino@gmail.com>2026-02-09 17:35:32 +0100
commitd5f78a4c2e7b626a492643efd62ddeb394276722 (patch)
treecdf38c3d64f6bf417975ce396572fc425d6f8910 /CMakeLists.txt
parent802e97ee695de1bc8657c5cbca653bb2f13b90a8 (diff)
feat: Add debug-only file change detection for rapid iteration
Enables --hot-reload flag to watch config files and notify on changes. Detects modifications to assets/sequences/music for rebuild workflow. Completely stripped from release builds (0 bytes overhead). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb6beef..1892775 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -130,7 +130,7 @@ set(3D_SOURCES
src/3d/scene_loader.cc
)
set(PLATFORM_SOURCES src/platform/platform.cc third_party/glfw3webgpu/glfw3webgpu.c)
-set(UTIL_SOURCES src/util/asset_manager.cc)
+set(UTIL_SOURCES src/util/asset_manager.cc src/util/file_watcher.cc)
#-- - Subsystem Libraries -- -
add_library(util STATIC ${UTIL_SOURCES})
@@ -426,6 +426,9 @@ if(DEMO_BUILD_TESTS)
add_demo_test(test_maths MathUtilsTest src/tests/test_maths.cc)
+ add_demo_test(test_file_watcher FileWatcherTest src/tests/test_file_watcher.cc)
+ target_link_libraries(test_file_watcher PRIVATE util ${DEMO_LIBS})
+
add_demo_test(test_synth SynthEngineTest src/tests/test_synth.cc ${GEN_DEMO_CC})
target_link_libraries(test_synth PRIVATE audio util procedural ${DEMO_LIBS})
add_dependencies(test_synth generate_demo_assets)