chore(cmake): update test support linkage in CMake configuration

- Removed direct linkage of yaze_test_support in the yaze target when tests are enabled, as it is now included transitively through yaze_editor.
- Added linkage of yaze_editor to yaze_test_support to facilitate TestManager usage, ensuring test dependencies are managed privately.

Benefits:
- Simplified CMake configuration by reducing direct dependencies.
- Enhanced modularity and maintainability of test support in the editor.
This commit is contained in:
scawful
2025-10-11 11:50:22 -04:00
parent fdcffde424
commit 44171d6972
2 changed files with 8 additions and 3 deletions

View File

@@ -41,9 +41,7 @@ target_link_libraries(yaze PRIVATE
absl::flags_parse
)
if(YAZE_BUILD_TESTS AND TARGET yaze_test_support)
target_link_libraries(yaze PRIVATE yaze_test_support)
endif()
# Note: yaze gets yaze_test_support transitively through yaze_editor when tests are enabled
# Platform-specific settings
if(WIN32)