Files
XCEngine/tests/UI/Editor/CMakeLists.txt

40 lines
1.1 KiB
CMake

cmake_minimum_required(VERSION 3.15)
project(XCEngine_EditorUITests)
set(XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT
"${CMAKE_SOURCE_DIR}/new_editor")
if(NOT EXISTS "${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Rendering/Native/AutoScreenshot.h"
OR NOT EXISTS "${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Platform/Win32/InputModifierTracker.h"
OR NOT EXISTS "${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Rendering/Native/NativeRenderer.h")
message(FATAL_ERROR
"Editor UI tests expect rendering/platform headers under "
"${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app.")
endif()
include_directories("${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app")
add_subdirectory(unit)
add_subdirectory(integration)
set(EDITOR_UI_UNIT_TEST_TARGETS
editor_ui_tests
)
if(TARGET editor_app_feature_tests)
list(APPEND EDITOR_UI_UNIT_TEST_TARGETS
editor_app_feature_tests
)
endif()
add_custom_target(editor_ui_unit_tests
DEPENDS
${EDITOR_UI_UNIT_TEST_TARGETS}
)
add_custom_target(editor_ui_all_tests
DEPENDS
editor_ui_unit_tests
editor_ui_integration_tests
)