2026-04-06 03:17:53 +08:00
|
|
|
set(EDITOR_UI_UNIT_TEST_SOURCES
|
2026-04-06 16:20:46 +08:00
|
|
|
test_editor_shell_asset_validation.cpp
|
2026-04-06 03:17:53 +08:00
|
|
|
test_input_modifier_tracker.cpp
|
|
|
|
|
test_structured_editor_shell.cpp
|
2026-04-06 18:05:34 +08:00
|
|
|
test_ui_editor_command_dispatcher.cpp
|
|
|
|
|
test_ui_editor_command_registry.cpp
|
2026-04-07 10:41:39 +08:00
|
|
|
test_ui_editor_dock_host_interaction.cpp
|
2026-04-06 18:05:34 +08:00
|
|
|
test_ui_editor_menu_model.cpp
|
2026-04-07 01:42:02 +08:00
|
|
|
test_ui_editor_menu_session.cpp
|
2026-04-07 03:51:26 +08:00
|
|
|
test_ui_editor_menu_bar.cpp
|
|
|
|
|
test_ui_editor_menu_popup.cpp
|
2026-04-06 16:20:46 +08:00
|
|
|
test_ui_editor_panel_registry.cpp
|
2026-04-07 06:30:34 +08:00
|
|
|
test_ui_editor_shell_compose.cpp
|
2026-04-07 10:16:55 +08:00
|
|
|
test_ui_editor_shell_interaction.cpp
|
2026-04-06 16:20:46 +08:00
|
|
|
test_ui_editor_collection_primitives.cpp
|
2026-04-07 02:21:43 +08:00
|
|
|
test_ui_editor_dock_host.cpp
|
2026-04-06 16:20:46 +08:00
|
|
|
test_ui_editor_panel_chrome.cpp
|
2026-04-07 01:42:02 +08:00
|
|
|
test_ui_editor_panel_frame.cpp
|
2026-04-07 03:51:26 +08:00
|
|
|
test_ui_editor_status_bar.cpp
|
2026-04-07 01:42:02 +08:00
|
|
|
test_ui_editor_tab_strip.cpp
|
2026-04-07 04:53:24 +08:00
|
|
|
test_ui_editor_viewport_input_bridge.cpp
|
2026-04-07 05:33:27 +08:00
|
|
|
test_ui_editor_viewport_shell.cpp
|
2026-04-07 04:23:33 +08:00
|
|
|
test_ui_editor_viewport_slot.cpp
|
2026-04-07 06:14:58 +08:00
|
|
|
test_ui_editor_workspace_compose.cpp
|
2026-04-06 18:05:34 +08:00
|
|
|
test_ui_editor_shortcut_manager.cpp
|
2026-04-06 16:20:46 +08:00
|
|
|
test_ui_editor_workspace_controller.cpp
|
2026-04-06 16:59:15 +08:00
|
|
|
test_ui_editor_workspace_layout_persistence.cpp
|
2026-04-06 04:27:54 +08:00
|
|
|
test_ui_editor_workspace_model.cpp
|
2026-04-06 16:20:46 +08:00
|
|
|
test_ui_editor_workspace_session.cpp
|
2026-04-06 03:17:53 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_executable(editor_ui_tests ${EDITOR_UI_UNIT_TEST_SOURCES})
|
|
|
|
|
|
|
|
|
|
target_link_libraries(editor_ui_tests
|
|
|
|
|
PRIVATE
|
2026-04-06 20:02:34 +08:00
|
|
|
XCUIEditorLib
|
2026-04-06 03:17:53 +08:00
|
|
|
GTest::gtest_main
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_include_directories(editor_ui_tests
|
|
|
|
|
PRIVATE
|
|
|
|
|
${CMAKE_SOURCE_DIR}/new_editor/include
|
|
|
|
|
${CMAKE_SOURCE_DIR}/new_editor/src
|
2026-04-06 20:02:34 +08:00
|
|
|
${CMAKE_SOURCE_DIR}/new_editor/app
|
2026-04-06 03:17:53 +08:00
|
|
|
${CMAKE_SOURCE_DIR}/engine/include
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
|
target_compile_options(editor_ui_tests PRIVATE /utf-8 /FS)
|
|
|
|
|
set_property(TARGET editor_ui_tests PROPERTY
|
|
|
|
|
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
include(GoogleTest)
|
|
|
|
|
gtest_discover_tests(editor_ui_tests)
|