aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-24 17:09:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-24 17:09:35 +0100
commitf267ddb5a7f2f2556b7a0c0751161f2f97bcae67 (patch)
treebbd1f04032e99333eeb5e5feb3ad4a45acb8a36a /src/rspamadm/CMakeLists.txt
parentc269a27b85bf3a4a02157057fd73362bd805f262 (diff)
downloadrspamd-f267ddb5a7f2f2556b7a0c0751161f2f97bcae67.tar.gz
rspamd-f267ddb5a7f2f2556b7a0c0751161f2f97bcae67.zip
Add rspamadm routine.
Diffstat (limited to 'src/rspamadm/CMakeLists.txt')
-rw-r--r--src/rspamadm/CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/rspamadm/CMakeLists.txt b/src/rspamadm/CMakeLists.txt
new file mode 100644
index 000000000..ba9814f8d
--- /dev/null
+++ b/src/rspamadm/CMakeLists.txt
@@ -0,0 +1,13 @@
+SET(RSPAMADMSRC rspamadm.c commands.c)
+
+ADD_EXECUTABLE(rspamadm ${RSPAMADMSRC})
+TARGET_LINK_LIBRARIES(rspamadm rspamd-server)
+TARGET_LINK_LIBRARIES(rspamadm ${RSPAMD_REQUIRED_LIBRARIES})
+TARGET_LINK_LIBRARIES(rspamadm stemmer)
+TARGET_LINK_LIBRARIES(rspamadm rspamd-actrie)
+
+IF (NOT DEBIAN_BUILD)
+ SET_TARGET_PROPERTIES(rspamadm PROPERTIES VERSION ${RSPAMD_VERSION})
+ENDIF (NOT DEBIAN_BUILD)
+
+INSTALL(TARGETS rspamadm RUNTIME DESTINATION bin) \ No newline at end of file