diff options
| author | Alexander Golubev <fatzer2@gmail.com> | 2026-03-01 22:38:01 +0300 |
|---|---|---|
| committer | Alexander Golubev <fatzer2@gmail.com> | 2026-03-02 13:39:00 +0300 |
| commit | d68f43128d74ee6eb3f2b371814289a1fdaf9a2b (patch) | |
| tree | b235caa191d9a354bfd9a1e05eacf37d7feb1866 /modules | |
| parent | 9eda0282223ae45557fe944eaa7f126fe50e98a9 (diff) | |
| download | tde-cmake-r14.1.x.tar.gz tde-cmake-r14.1.x.zip | |
Add build-check targetr14.1.x
Adds a build-check which builds test executables but doesn't run them.
Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tde-cmake/issues/129
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
(cherry picked from commit cb851d659524b76ca0209b9d3a6f09caaf2ef53e)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/TDEMacros.cmake | 11 |
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 |
