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 . cmake .
make VERBOSE=1 -j2 make VERBOSE=1 -j2
- name: Test
run: |
ctest --output-on-failure
- name: Package - name: Package
run: | run: |
make DESTDIR=$PWD/_install install make DESTDIR=$PWD/_install install

View File

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

1
test/CMakeLists.txt Normal file
View File

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