2026-04-06 03:17:53 +08:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
|
|
|
|
|
|
project(XCEngine_EditorUITests)
|
|
|
|
|
|
2026-04-10 01:59:15 +08:00
|
|
|
set(XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT
|
|
|
|
|
"${CMAKE_SOURCE_DIR}/new_editor")
|
|
|
|
|
|
|
|
|
|
if(NOT EXISTS "${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/Host/AutoScreenshot.h"
|
|
|
|
|
OR NOT EXISTS "${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/Host/InputModifierTracker.h"
|
|
|
|
|
OR NOT EXISTS "${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/Host/NativeRenderer.h")
|
|
|
|
|
message(FATAL_ERROR
|
|
|
|
|
"Editor UI tests expect host headers under "
|
|
|
|
|
"${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/Host.")
|
|
|
|
|
endif()
|
|
|
|
|
|
2026-04-06 03:17:53 +08:00
|
|
|
add_subdirectory(unit)
|
|
|
|
|
add_subdirectory(integration)
|
|
|
|
|
|
|
|
|
|
add_custom_target(editor_ui_unit_tests
|
|
|
|
|
DEPENDS
|
|
|
|
|
editor_ui_tests
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_custom_target(editor_ui_all_tests
|
|
|
|
|
DEPENDS
|
|
|
|
|
editor_ui_unit_tests
|
|
|
|
|
editor_ui_integration_tests
|
|
|
|
|
)
|