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:
@@ -34,10 +34,12 @@ if(YAZE_BUILD_TESTS)
|
||||
${SDL_TARGETS}
|
||||
)
|
||||
|
||||
# Link ImGui Test Engine for GUI tests
|
||||
if(is_gui_test AND YAZE_ENABLE_UI_TESTS)
|
||||
target_link_libraries(${suite_name} PRIVATE ${IMGUI_TEST_ENGINE_TARGET})
|
||||
target_compile_definitions(${suite_name} PRIVATE ${IMGUI_TEST_ENGINE_DEFINITIONS})
|
||||
# Link ImGui Test Engine for GUI tests (always available when tests are built)
|
||||
if(is_gui_test AND TARGET ImGuiTestEngine)
|
||||
target_link_libraries(${suite_name} PRIVATE ImGuiTestEngine)
|
||||
target_compile_definitions(${suite_name} PRIVATE
|
||||
IMGUI_ENABLE_TEST_ENGINE=1
|
||||
IMGUI_TEST_ENGINE_ENABLE_COROUTINE_STDTHREAD_IMPL=1)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
|
||||
Reference in New Issue
Block a user