aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-17 17:28:07 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-17 17:28:07 +0000
commite771cd9604aca7831495e2cb04592ae9ebc9eba8 (patch)
tree4ff78515576d6716b3791ae46ebc05ed48e2a6d4 /CMakeLists.txt
parent7404cdceee25820f36a4002c904fdd7bb385c8f6 (diff)
downloadrspamd-e771cd9604aca7831495e2cb04592ae9ebc9eba8.tar.gz
rspamd-e771cd9604aca7831495e2cb04592ae9ebc9eba8.zip
Add custom targets check and run-test.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
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