57 lines
1.7 KiB
CMake
57 lines
1.7 KiB
CMake
file(TO_CMAKE_PATH "${CMAKE_SOURCE_DIR}" XCENGINE_EDITOR_UI_TESTS_REPO_ROOT_PATH)
|
|
file(TO_CMAKE_PATH "${CMAKE_BINARY_DIR}" XCENGINE_EDITOR_UI_TESTS_BUILD_ROOT_PATH)
|
|
|
|
add_library(editor_ui_validation_registry STATIC
|
|
src/EditorValidationScenario.cpp
|
|
)
|
|
|
|
target_include_directories(editor_ui_validation_registry
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
)
|
|
|
|
target_compile_definitions(editor_ui_validation_registry
|
|
PUBLIC
|
|
XCENGINE_EDITOR_UI_TESTS_REPO_ROOT="${XCENGINE_EDITOR_UI_TESTS_REPO_ROOT_PATH}"
|
|
)
|
|
|
|
if(MSVC)
|
|
target_compile_options(editor_ui_validation_registry PRIVATE /utf-8 /FS)
|
|
set_property(TARGET editor_ui_validation_registry PROPERTY
|
|
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
|
|
endif()
|
|
|
|
add_library(editor_ui_integration_host STATIC
|
|
src/Application.cpp
|
|
)
|
|
|
|
target_include_directories(editor_ui_integration_host
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
${CMAKE_SOURCE_DIR}/engine/include
|
|
${CMAKE_SOURCE_DIR}/new_editor/include
|
|
${CMAKE_SOURCE_DIR}/new_editor/app
|
|
${CMAKE_SOURCE_DIR}/new_editor/src
|
|
)
|
|
|
|
target_compile_definitions(editor_ui_integration_host
|
|
PUBLIC
|
|
UNICODE
|
|
_UNICODE
|
|
XCENGINE_EDITOR_UI_TESTS_REPO_ROOT="${XCENGINE_EDITOR_UI_TESTS_REPO_ROOT_PATH}"
|
|
XCENGINE_EDITOR_UI_TESTS_BUILD_ROOT="${XCENGINE_EDITOR_UI_TESTS_BUILD_ROOT_PATH}"
|
|
)
|
|
|
|
if(MSVC)
|
|
target_compile_options(editor_ui_integration_host PRIVATE /utf-8 /FS)
|
|
set_property(TARGET editor_ui_integration_host PROPERTY
|
|
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
|
|
endif()
|
|
|
|
target_link_libraries(editor_ui_integration_host
|
|
PUBLIC
|
|
editor_ui_validation_registry
|
|
XCUIEditorHost
|
|
XCEngine
|
|
)
|