diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-17 17:28:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-17 17:28:07 +0000 |
commit | e771cd9604aca7831495e2cb04592ae9ebc9eba8 (patch) | |
tree | 4ff78515576d6716b3791ae46ebc05ed48e2a6d4 /CMakeLists.txt | |
parent | 7404cdceee25820f36a4002c904fdd7bb385c8f6 (diff) | |
download | rspamd-e771cd9604aca7831495e2cb04592ae9ebc9eba8.tar.gz rspamd-e771cd9604aca7831495e2cb04592ae9ebc9eba8.zip |
Add custom targets check and run-test.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 33348ac6b..be81d3eeb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ IF(NOT RSPAMD_USER) ENDIF(NOT RSPAMD_USER) CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) +SET_PROPERTY(GLOBAL PROPERTY ALLOW_DUPLICATE_CUSTOM_TARGETS 1) ############################# OPTIONS SECTION ############################################# @@ -939,3 +940,6 @@ ADD_CUSTOM_TARGET(dist ${CMAKE_SOURCE_DIR}/dist.sh "${CMAKE_BINARY_DIR}/rspamd-${RSPAMD_VERSION}.tar.xz" COMMENT "Create source distribution" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) + +ADD_CUSTOM_TARGET(check DEPENDS rspamd-test) +ADD_CUSTOM_TARGET(run-test DEPENDS check COMMAND test/rspamd-test)
\ No newline at end of file |