Automatically run tests within check target

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 6455cb89f3)
v3.5.13-sru
Slávek Banko 8 years ago
parent 766aeaca3d
commit db500f99a7

@ -1016,7 +1016,10 @@ macro( tde_add_check_executable _arg_target )
# create make check target # create make check target
if(NOT TARGET check) 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) endif(NOT TARGET check)
add_dependencies( check ${_target} ) add_dependencies( check ${_target} )

Loading…
Cancel
Save