aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-13 16:46:06 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-13 16:46:06 +0000
commitf086958b4b6b71952bb47e422aebaaa00c3143ea (patch)
tree56259e331c98ad3e6009ffbc7e3b467721219bc9 /src/libstat/CMakeLists.txt
parentdf94595caf6890037a1178a8bdcb753653b1133d (diff)
downloadrspamd-f086958b4b6b71952bb47e422aebaaa00c3143ea.tar.gz
rspamd-f086958b4b6b71952bb47e422aebaaa00c3143ea.zip
Add sqlite3 learn cache.
Diffstat (limited to 'src/libstat/CMakeLists.txt')
-rw-r--r--src/libstat/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstat/CMakeLists.txt b/src/libstat/CMakeLists.txt
index 17c553989..5c4e2bc74 100644
--- a/src/libstat/CMakeLists.txt
+++ b/src/libstat/CMakeLists.txt
@@ -8,16 +8,20 @@ SET(TOKENIZERSSRC tokenizers/tokenizers.c
SET(CLASSIFIERSSRC classifiers/bayes.c)
SET(BACKENDSSRC backends/mmaped_file.c)
+
+SET(CACHESSRC learn_cache/sqlite3_cache.c)
ADD_LIBRARY(rspamd-stat ${LINK_TYPE} ${LIBSTATSRC}
${TOKENIZERSSRC}
${CLASSIFIERSSRC}
- ${BACKENDSSRC})
+ ${BACKENDSSRC}
+ ${CACHESSRC})
IF(NOT DEBIAN_BUILD)
SET_TARGET_PROPERTIES(rspamd-stat PROPERTIES VERSION ${RSPAMD_VERSION})
ENDIF(NOT DEBIAN_BUILD)
SET_TARGET_PROPERTIES(rspamd-stat PROPERTIES LINKER_LANGUAGE C COMPILE_FLAGS "-DRSPAMD_LIB")
TARGET_LINK_LIBRARIES(rspamd-stat rspamd-server)
+TARGET_LINK_LIBRARIES(rspamd-stat sqlite3)
IF(CMAKE_COMPILER_IS_GNUCC)
SET_TARGET_PROPERTIES(rspamd-stat PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB -fno-strict-aliasing")