aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-02 16:16:51 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-02 16:16:51 +0300
commite7032003419b8575e211fb9bb4740c1d37736f51 (patch)
treea44830a57a3a2f1ec5347227fd44d60faa419a56 /CMakeLists.txt
parent295619fdc102e5528a5370a0dcd58bef9c7dc371 (diff)
downloadrspamd-e7032003419b8575e211fb9bb4740c1d37736f51.tar.gz
rspamd-e7032003419b8575e211fb9bb4740c1d37736f51.zip
Update build and install system.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d01c636a..1437166a8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -759,9 +759,7 @@ ENDIF(ENABLE_STATIC MATCHES "ON")
##################### INSTALLATION ##########################################
# Binaries
-INSTALL(PROGRAMS rspamd-${RSPAMD_VERSION} DESTINATION bin RENAME rspamd)
-INSTALL(PROGRAMS src/client/rspamc DESTINATION bin)
-
+INSTALL(TARGETS rspamd RUNTIME DESTINATION bin)
# Configs
IF(NOT EXISTS ${DESTDIR}/${ETC_PREFIX}/rspamd)
@@ -812,9 +810,9 @@ IF(ENABLE_PERL MATCHES "ON")
ENDIF(ENABLE_PERL MATCHES "ON")
# Redirector
-IF(ENABLE_REDIRECTOR MATCHES "ON" AND ENABLE_PERL MATCHES "ON")
+IF(ENABLE_REDIRECTOR MATCHES "ON")
INSTALL(PROGRAMS utils/redirector.pl DESTINATION bin RENAME rspamd-redirector)
-ENDIF(ENABLE_REDIRECTOR MATCHES "ON" AND ENABLE_PERL MATCHES "ON")
+ENDIF(ENABLE_REDIRECTOR MATCHES "ON")
# Start scripts
IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND NOT BUILD_PORT)
@@ -925,4 +923,4 @@ IF(DPKG_FOUND STREQUAL "YES")
ENDIF(DPKG_FOUND STREQUAL "YES")
IF(PKGCREATE_FOUND STREQUAL "YES")
ADD_FREEBSD_PACKAGE("rspamd" "freebsd/rspamd.plist")
-ENDIF(PKGCREATE_FOUND STREQUAL "YES") \ No newline at end of file
+ENDIF(PKGCREATE_FOUND STREQUAL "YES")