31 lines
833 B
CMake
31 lines
833 B
CMake
set(NEW_EDITOR_TEST_SOURCES
|
|
test_sandbox_frame_builder.cpp
|
|
test_structured_editor_shell.cpp
|
|
)
|
|
|
|
add_executable(new_editor_tests ${NEW_EDITOR_TEST_SOURCES})
|
|
|
|
target_link_libraries(new_editor_tests PRIVATE
|
|
XCNewEditorLib
|
|
GTest::gtest_main
|
|
)
|
|
|
|
target_include_directories(new_editor_tests PRIVATE
|
|
${CMAKE_SOURCE_DIR}/new_editor/src
|
|
${CMAKE_SOURCE_DIR}/engine/include
|
|
)
|
|
|
|
file(TO_CMAKE_PATH "${CMAKE_SOURCE_DIR}" XCNEWEDITOR_REPO_ROOT_PATH)
|
|
|
|
target_compile_definitions(new_editor_tests PRIVATE
|
|
XCNEWEDITOR_REPO_ROOT="${XCNEWEDITOR_REPO_ROOT_PATH}"
|
|
)
|
|
|
|
if(MSVC)
|
|
target_compile_options(new_editor_tests PRIVATE /utf-8 /FS)
|
|
set_property(TARGET new_editor_tests PROPERTY
|
|
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
|
|
endif()
|
|
|
|
add_test(NAME new_editor_tests COMMAND new_editor_tests)
|