set(EDITOR_UI_UNIT_TEST_SOURCES test_input_modifier_tracker.cpp test_editor_validation_registry.cpp test_structured_editor_shell.cpp test_ui_editor_workspace_model.cpp # Migration bridge: editor-facing XCUI primitive tests still reuse the # legacy source location until they are relocated under tests/UI/Editor/unit. ${CMAKE_SOURCE_DIR}/tests/Core/UI/test_ui_editor_collection_primitives.cpp ${CMAKE_SOURCE_DIR}/tests/Core/UI/test_ui_editor_panel_chrome.cpp ) add_executable(editor_ui_tests ${EDITOR_UI_UNIT_TEST_SOURCES}) target_link_libraries(editor_ui_tests PRIVATE editor_ui_validation_registry XCNewEditorLib GTest::gtest_main ) target_include_directories(editor_ui_tests PRIVATE ${CMAKE_SOURCE_DIR}/new_editor/include ${CMAKE_SOURCE_DIR}/new_editor/src ${CMAKE_SOURCE_DIR}/engine/include ${CMAKE_SOURCE_DIR}/tests/UI/Editor/integration/shared/src ) if(MSVC) target_compile_options(editor_ui_tests PRIVATE /utf-8 /FS) set_property(TARGET editor_ui_tests PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") endif() include(GoogleTest) gtest_discover_tests(editor_ui_tests)