aboutsummaryrefslogtreecommitdiffstats
path: root/src/cdb
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-06-05 18:21:49 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-06-05 18:21:49 +0400
commit35cb2b6e2f17a518d0c940985e6e19b41fdedf19 (patch)
tree18b4c1bd7ddea5af8eb580333c6ac1e5f0e00ebb /src/cdb
parent1d8da7cd96a810bc6119a8f604e934235e68f9cf (diff)
downloadrspamd-35cb2b6e2f17a518d0c940985e6e19b41fdedf19.tar.gz
rspamd-35cb2b6e2f17a518d0c940985e6e19b41fdedf19.zip
* Split rspamd build to several independent libraries to reduce overhead.
Diffstat (limited to 'src/cdb')
-rw-r--r--src/cdb/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cdb/CMakeLists.txt b/src/cdb/CMakeLists.txt
index d0b56bc6c..ab7b8b57a 100644
--- a/src/cdb/CMakeLists.txt
+++ b/src/cdb/CMakeLists.txt
@@ -3,5 +3,9 @@ SET(CDBSRC cdb_init.c
cdb_find.c
cdb_make.c)
-ADD_LIBRARY(rspamd_cdb STATIC ${CDBSRC})
-SET_TARGET_PROPERTIES(rspamd_cdb PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB") \ No newline at end of file
+ADD_LIBRARY(rspamd-cdb SHARED ${CDBSRC})
+SET_TARGET_PROPERTIES(rspamd-cdb PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
+INSTALL(TARGETS rspamd-cdb
+ LIBRARY DESTINATION ${LIBDIR}
+ PUBLIC_HEADER DESTINATION ${INCLUDEDIR}
+ ARCHIVE DESTINATION ${LIBDIR}) \ No newline at end of file