Skip to content
Snippets Groups Projects
Unverified Commit abf099a7 authored by Tim Kaune's avatar Tim Kaune
Browse files

Add custom check target to build and run the tests

parent 8cbcf5e1
No related branches found
No related tags found
No related merge requests found
...@@ -21,4 +21,4 @@ jobs: ...@@ -21,4 +21,4 @@ jobs:
- name: install - name: install
run: cmake --build --preset ninja --verbose --target install run: cmake --build --preset ninja --verbose --target install
- name: test - name: test
run: cmake --build --preset ninja --verbose --target test run: cmake --build --preset ninja --verbose --target check
...@@ -54,7 +54,9 @@ endif () ...@@ -54,7 +54,9 @@ endif ()
add_subdirectory(src) add_subdirectory(src)
if (IS_TOP_LEVEL AND BUILD_TESTING) if (IS_TOP_LEVEL AND BUILD_TESTING)
add_subdirectory(tests) add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} -V)
add_subdirectory(tests EXCLUDE_FROM_ALL)
endif () endif ()
option(LoadStaticSharedTargets_INCLUDE_PACKAGING "Include packaging rules for LoadStaticSharedTargets" "${IS_TOP_LEVEL}") option(LoadStaticSharedTargets_INCLUDE_PACKAGING "Include packaging rules for LoadStaticSharedTargets" "${IS_TOP_LEVEL}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment