Automatically run tests within check target

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 8 years ago
parent 9150bd170f
commit 6455cb89f3

@ -1166,7 +1166,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