refactor(cmake): update test configuration for GUI targets
- Removed experimental test option and modular build option from CMakeLists.txt to simplify configuration. - Added a definition for YAZE_GUI_TEST_TARGET in the test CMakeLists.txt to mark GUI test targets. - Updated yaze_test.cc to conditionally register E2E tests only for GUI test targets, enhancing clarity in test registration. Benefits: - Streamlined CMake configuration for testing. - Improved organization of test registration logic for GUI targets.
This commit is contained in:
@@ -39,7 +39,8 @@ if(YAZE_BUILD_TESTS)
|
||||
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)
|
||||
IMGUI_TEST_ENGINE_ENABLE_COROUTINE_STDTHREAD_IMPL=1
|
||||
YAZE_GUI_TEST_TARGET=1) # Mark this as a GUI test target
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
|
||||
Reference in New Issue
Block a user