summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/TDEMacros.cmake11
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index f151ecb..4e1279d 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -1685,16 +1685,23 @@ macro( tde_add_check_executable _arg_target )
add_dependencies( ${_target} ${_dependencies} )
endif( _dependencies )
+ # create make build-check target
+ if(NOT TARGET build-check)
+ add_custom_target( build-check
+ COMMENT "Building tests..." )
+ endif(NOT TARGET build-check)
+
+ add_dependencies( build-check ${_target} )
+
# create make check target
if(NOT TARGET check)
add_custom_target( check
COMMAND ${CMAKE_CTEST_COMMAND}
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}"
COMMENT "Running tests..." )
+ add_dependencies( check build-check )
endif(NOT TARGET check)
- add_dependencies( check ${_target} )
-
# add test target
if( _test )
# get relative path to current directory and strip end tests dir