refactor(cmake): simplify ImGui test engine integration and feature flags
- Updated CMake configuration to always include the ImGui Test Engine when tests are enabled, removing conditional checks for UI tests. - Simplified feature flag management by enabling JSON and gRPC by default, with a minimal build option to disable only the most expensive features. - Enhanced status messages to provide clearer feedback on build configurations and feature availability. Benefits: - Streamlined integration of the ImGui Test Engine for testing purposes. - Improved clarity in feature flag settings, making it easier to manage build configurations.
This commit is contained in:
@@ -121,12 +121,11 @@ if(YAZE_WITH_JSON)
|
||||
target_compile_definitions(yaze_editor PUBLIC YAZE_WITH_JSON)
|
||||
endif()
|
||||
|
||||
# Conditionally link ImGui Test Engine
|
||||
if(YAZE_ENABLE_UI_TESTS AND TARGET ImGuiTestEngine)
|
||||
# Link ImGui Test Engine 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)
|
||||
target_compile_definitions(yaze_editor PRIVATE YAZE_ENABLE_IMGUI_TEST_ENGINE=1)
|
||||
else()
|
||||
target_compile_definitions(yaze_editor PRIVATE YAZE_ENABLE_IMGUI_TEST_ENGINE=0)
|
||||
message(STATUS "✓ yaze_editor linked to ImGuiTestEngine")
|
||||
endif()
|
||||
|
||||
# Conditionally link gRPC if enabled
|
||||
|
||||
Reference in New Issue
Block a user