Automatically run tests within check target

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 6455cb89f3)
r14.0.x
Slávek Banko 8 years ago
parent 0d13cc2b5a
commit 7eed3aa726

@ -1166,7 +1166,10 @@ macro( tde_add_check_executable _arg_target )
# create make check target
if(NOT TARGET check)
add_custom_target(check)
add_custom_target( check
COMMAND ${CMAKE_CTEST_COMMAND}
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
COMMENT "Running tests..." )
endif(NOT TARGET check)
add_dependencies( check ${_target} )

Loading…
Cancel
Save