summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-04 17:13:38 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-04 17:13:38 +0000
commit05599df1c3878053cf008df8b582d00accd11fc7 (patch)
tree5d617db679078d87de16efc2a83e22f4e8e2391a /CMakeLists.txt
parent8f92a9867ac73d38c59736bf152f803201c6e01b (diff)
downloadrspamd-05599df1c3878053cf008df8b582d00accd11fc7.tar.gz
rspamd-05599df1c3878053cf008df8b582d00accd11fc7.zip
Fix debian build files.
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 6e42fa9e8..fcb19df28 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,6 +38,7 @@ OPTION(ENABLE_SQLITE "Find and link with sqlite3 library [default: OFF]"
OPTION(ENABLE_HIREDIS "Find and link with external redis library [default: OFF]" OFF)
OPTION(NO_SHARED "Build internal libs static [default: OFF]" OFF)
OPTION(FORCE_GMIME24 "Link with gmime2.4 [default: OFF]" OFF)
+OPTION(INSTALL_EXAMPLES "Install examples [default: OFF]" OFF)
# Build optimized code for following CPU (default i386)
#SET(CPU_TUNE "i686")
@@ -1125,6 +1126,9 @@ FOREACH(CONF_IDX RANGE ${CONFLIST_MAX})
ELSE(BUILD_PORT)
INSTALL_IF_NOT_EXISTS(${CONF_FILE} ${CONFDIR} "")
ENDIF(BUILD_PORT)
+ IF(INSTALL_EXAMPLES MATCHES "ON")
+ INSTALL(FILES ${CONF_FILE} DESTINATION ${EXAMPLESDIR})
+ ENDIF(INSTALL_EXAMPLES MATCHES "ON")
ENDFOREACH(CONF_IDX RANGE ${CONFLIST_MAX})
# Lua plugins