feat: Add support for test discovery and organization in CMake configuration

This commit is contained in:
scawful
2025-10-04 16:37:13 -04:00
parent 37269e763a
commit 2c74f08f4c
3 changed files with 158 additions and 147 deletions

View File

@@ -90,6 +90,10 @@ endif()
include(app/zelda3/zelda3_library.cmake)
include(app/editor/editor_library.cmake)
if(YAZE_BUILD_TESTS)
include(app/test/test.cmake)
endif()
if(YAZE_BUILD_EMU)
include(app/emu/emu_library.cmake)
endif()
@@ -192,6 +196,10 @@ if (YAZE_BUILD_APP)
list(APPEND _yaze_modular_links yaze_emulator)
endif()
if(YAZE_BUILD_TESTS AND TARGET yaze_test_support)
list(APPEND _yaze_modular_links yaze_test_support)
endif()
target_link_libraries(yaze PRIVATE ${_yaze_modular_links})
else()
target_link_libraries(yaze PRIVATE yaze_core)