mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-23 14:20:23 +01:00
The method to load a mesh from a file was removed. This is not a good fix, but it will keep the tests working until a file loader can be properly exposed to the tests.
34 lines
594 B
CMake
34 lines
594 B
CMake
add_executable(tests
|
|
testCGLTFMeshFileLoader.cpp
|
|
"${PROJECT_SOURCE_DIR}/source/Irrlicht/CReadFile.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_include_directories(tests
|
|
PRIVATE
|
|
# For CReadFile
|
|
"${PROJECT_SOURCE_DIR}/source/Irrlicht"
|
|
)
|
|
|
|
target_link_libraries(tests
|
|
PRIVATE
|
|
Catch2::Catch
|
|
IrrlichtMt::IrrlichtMt
|
|
)
|
|
|
|
add_test(
|
|
NAME tests
|
|
COMMAND "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tests"
|
|
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
|
|
)
|