From db500f99a7807c845cce4f9a09788ee726d340ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 29 Jan 2017 15:46:33 +0100 Subject: [PATCH] Automatically run tests within check target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 6455cb89f3f39b76326df5fc2558d42b6088a0e5) --- modules/TDEMacros.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index ae999c5..df50b09 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1016,7 +1016,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} )