aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-07 17:24:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-07 17:24:43 +0000
commit92ab6bdb44e6c4fe23a782f0a0f7c98a97aaf6e2 (patch)
tree46b7457b539da6fc3de8d684d517828dff582eaf /src/rspamadm/CMakeLists.txt
parent813685c8e0fa11bb1458823d396079c9c3470c7a (diff)
downloadrspamd-92ab6bdb44e6c4fe23a782f0a0f7c98a97aaf6e2.tar.gz
rspamd-92ab6bdb44e6c4fe23a782f0a0f7c98a97aaf6e2.zip
Add hyperscan helper worker
Diffstat (limited to 'src/rspamadm/CMakeLists.txt')
-rw-r--r--src/rspamadm/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rspamadm/CMakeLists.txt b/src/rspamadm/CMakeLists.txt
index 585e42628..44da69156 100644
--- a/src/rspamadm/CMakeLists.txt
+++ b/src/rspamadm/CMakeLists.txt
@@ -7,7 +7,9 @@ SET(RSPAMADMSRC rspamadm.c commands.c pw.c keypair.c configtest.c
${CMAKE_SOURCE_DIR}/src/smtp_proxy.c
${CMAKE_SOURCE_DIR}/src/worker.c
${CMAKE_SOURCE_DIR}/src/http_proxy.c fuzzy_merge.c configdump.c control.c)
-
+IF (ENABLE_HYPERSCAN MATCHES "ON")
+ LIST(APPEND RSPAMADMSRC "${CMAKE_SOURCE_DIR}/src/hs_helper.c")
+ENDIF()
ADD_EXECUTABLE(rspamadm ${RSPAMADMSRC})
TARGET_LINK_LIBRARIES(rspamadm rspamd-server)
TARGET_LINK_LIBRARIES(rspamadm ${RSPAMD_REQUIRED_LIBRARIES})
@@ -20,6 +22,7 @@ TARGET_LINK_LIBRARIES(rspamadm rspamd-actrie)
IF (NOT DEBIAN_BUILD)
SET_TARGET_PROPERTIES(rspamadm PROPERTIES VERSION ${RSPAMD_VERSION})
ENDIF (NOT DEBIAN_BUILD)
+
IF (ENABLE_HYPERSCAN MATCHES "ON")
TARGET_LINK_LIBRARIES(rspamadm hs)
SET_TARGET_PROPERTIES(rspamadm PROPERTIES LINKER_LANGUAGE CXX)