mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-16 23:40:25 +01:00
27 lines
434 B
CMake
27 lines
434 B
CMake
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
|
|
)
|
|
|
|
add_test(
|
|
NAME tests
|
|
COMMAND "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tests"
|
|
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
|
|
)
|