Add CTest

This commit is contained in:
numzero 2023-09-30 21:25:14 +03:00 committed by sfan5
parent a07cfc0f7a
commit 8c2ad025b1
3 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,10 @@ jobs:
cmake .
make VERBOSE=1 -j2
- name: Test
run: |
ctest --output-on-failure
- name: Package
run: |
make DESTDIR=$PWD/_install install

View File

@ -41,7 +41,9 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
enable_testing()
add_subdirectory(source/Irrlicht)
add_subdirectory(test)
option(BUILD_EXAMPLES "Build example applications" FALSE)
if(BUILD_EXAMPLES)

1
test/CMakeLists.txt Normal file
View File

@ -0,0 +1 @@
link_libraries(IrrlichtMt::IrrlichtMt)