mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cmake: fix target dependencies for tests
This commit is contained in:
parent
6ecac46b4e
commit
cc139b6101
3 changed files with 7 additions and 6 deletions
|
@ -20,15 +20,12 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
###################################################################################
|
||||
|
||||
add_custom_target(tests)
|
||||
add_custom_target(run-tests)
|
||||
|
||||
add_subdirectory(unit)
|
||||
add_subdirectory(integration)
|
||||
|
||||
add_custom_target(tests)
|
||||
add_dependencies(tests unit-tests)
|
||||
|
||||
add_custom_target(run-tests)
|
||||
add_dependencies(run-tests run-unit-tests run-integration-tests)
|
||||
|
||||
set(VALGRIND "valgrind --leak-check=full --show-leak-kinds=all --suppressions=${CMAKE_CURRENT_SOURCE_DIR}/valgrind.supp")
|
||||
|
||||
add_custom_target(run-valgrind
|
||||
|
|
|
@ -31,3 +31,4 @@ add_custom_target(run-integration-tests
|
|||
villas-signal
|
||||
villas-hook
|
||||
)
|
||||
add_dependencies(run-tests run-integration-tests)
|
||||
|
|
|
@ -55,5 +55,8 @@ if(CRITERION_FOUND)
|
|||
USES_TERMINAL
|
||||
)
|
||||
|
||||
add_dependencies(tests unit-tests)
|
||||
add_dependencies(run-tests run-unit-tests)
|
||||
|
||||
add_dependencies(run-unit-tests unit-tests)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Reference in a new issue