ENDIF(NOT RSPAMD_USER)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR)
+SET_PROPERTY(GLOBAL PROPERTY ALLOW_DUPLICATE_CUSTOM_TARGETS 1)
############################# OPTIONS SECTION #############################################
"${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