chore(cmake): refine test support linkage for yaze and yaze_emu
- Updated CMake configuration to conditionally link the yaze_test_support library for both yaze and yaze_emu targets, ensuring proper integration with TestManager. - Enhanced status messages to provide clearer feedback on the linkage status and potential issues if the target is not found. Benefits: - Improved clarity and maintainability of the CMake configuration. - Enhanced modularity by managing test dependencies more effectively.
This commit is contained in:
@@ -71,7 +71,10 @@ if(YAZE_BUILD_APP OR YAZE_BUILD_Z3ED OR YAZE_BUILD_TESTS)
|
||||
include(cli/agent.cmake)
|
||||
endif()
|
||||
|
||||
if(YAZE_BUILD_TESTS AND NOT YAZE_MINIMAL_BUILD)
|
||||
# Include test support library when tests are enabled OR in non-minimal builds
|
||||
# (yaze_editor needs TestManager for editor features)
|
||||
# Test executables are only built when YAZE_BUILD_TESTS=ON (handled in test/CMakeLists.txt)
|
||||
if(YAZE_BUILD_TESTS OR NOT YAZE_MINIMAL_BUILD)
|
||||
include(app/test/test.cmake)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user