refactor(cmake): enhance test linking for editor with additional support libraries
- Updated CMake configuration to conditionally link the yaze_test_support library when tests are enabled, alongside the existing ImGuiTestEngine. - Improved status messages to provide clearer feedback on linked libraries during the build process. Benefits: - Enhanced testing capabilities for the editor by integrating additional support libraries. - Improved clarity in build output regarding linked test infrastructure.
This commit is contained in:
@@ -120,11 +120,18 @@ if(YAZE_WITH_JSON)
|
||||
target_compile_definitions(yaze_editor PUBLIC YAZE_WITH_JSON)
|
||||
endif()
|
||||
|
||||
# Link ImGui Test Engine when tests are enabled
|
||||
# Link test infrastructure when tests are enabled
|
||||
# The test infrastructure is integrated into the editor for test automation
|
||||
if(YAZE_BUILD_TESTS AND TARGET ImGuiTestEngine)
|
||||
target_link_libraries(yaze_editor PUBLIC ImGuiTestEngine)
|
||||
message(STATUS "✓ yaze_editor linked to ImGuiTestEngine")
|
||||
if(YAZE_BUILD_TESTS)
|
||||
if(TARGET ImGuiTestEngine)
|
||||
target_link_libraries(yaze_editor PUBLIC ImGuiTestEngine)
|
||||
message(STATUS "✓ yaze_editor linked to ImGuiTestEngine")
|
||||
endif()
|
||||
|
||||
if(TARGET yaze_test_support)
|
||||
target_link_libraries(yaze_editor PUBLIC yaze_test_support)
|
||||
message(STATUS "✓ yaze_editor linked to yaze_test_support")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Conditionally link gRPC if enabled
|
||||
|
||||
Reference in New Issue
Block a user