irrlicht/source/Irrlicht/tests/CMakeLists.txt

27 lines
434 B
CMake
Raw Normal View History

2022-10-17 04:48:29 +02:00
add_executable(tests
testCGLTFMeshFileLoader.cpp
)
set_target_properties(tests PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO
)
target_compile_options(tests
PRIVATE
"$<$<CXX_COMPILER_ID:GNU>:-Wall>"
)
target_link_libraries(tests
PRIVATE
Catch2::Catch
IrrlichtMt::IrrlichtMt
)
2023-01-31 15:42:35 +01:00
add_test(
2023-05-15 19:32:45 +02:00
NAME tests
COMMAND "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tests"
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
2023-01-31 15:42:35 +01:00
)