Browse Source

Automatically run tests within check target

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 3 years ago
parent
commit
6455cb89f3
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      modules/TDEMacros.cmake

+ 4
- 1
modules/TDEMacros.cmake View File

@@ -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