38 lines
853 B
CMake
38 lines
853 B
CMake
if(NOT TARGET XCUIEditorApp)
|
|
add_custom_target(editor_ui_smoke_targets)
|
|
return()
|
|
endif()
|
|
|
|
add_executable(editor_ui_smoke_runner
|
|
xcui_editor_app_smoke_runner.cpp
|
|
)
|
|
|
|
target_link_libraries(editor_ui_smoke_runner
|
|
PRIVATE
|
|
user32.lib
|
|
)
|
|
|
|
if(MSVC)
|
|
target_compile_options(editor_ui_smoke_runner PRIVATE /utf-8 /FS)
|
|
set_property(TARGET editor_ui_smoke_runner PROPERTY
|
|
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
|
|
endif()
|
|
|
|
add_test(
|
|
NAME xcui_editor_app_smoke
|
|
COMMAND
|
|
$<TARGET_FILE:editor_ui_smoke_runner>
|
|
$<TARGET_FILE:XCUIEditorApp>
|
|
)
|
|
set_tests_properties(xcui_editor_app_smoke PROPERTIES
|
|
TIMEOUT 45
|
|
RUN_SERIAL TRUE
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
)
|
|
|
|
add_custom_target(editor_ui_smoke_targets
|
|
DEPENDS
|
|
editor_ui_smoke_runner
|
|
XCUIEditorApp
|
|
)
|