From d5f78a4c2e7b626a492643efd62ddeb394276722 Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 9 Feb 2026 17:35:32 +0100 Subject: 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 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3