diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-21 12:28:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-21 12:28:41 +0000 |
commit | c2ff857a70752a83e9d19184d140826fbed9f467 (patch) | |
tree | a59a47ead6b6825fdf3b9fe999f87e35c5137fd3 /CMakeLists.txt | |
parent | a9dcf6a0b3f49b63be438d4cfefbcd315a14df6f (diff) | |
download | rspamd-c2ff857a70752a83e9d19184d140826fbed9f467.tar.gz rspamd-c2ff857a70752a83e9d19184d140826fbed9f467.zip |
Add detection of libfann
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ae77b8330..99c1f56c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,7 +53,7 @@ OPTION(WANT_SYSTEMD_UNITS "Install systemd unit files on Linux [default: OFF]" OPTION(ENABLE_SNOWBALL "Enable snowball stemmer [default: ON]" ON) OPTION(ENABLE_CLANG_PLUGIN "Enable clang static analysing plugin [default: OFF]" OFF) OPTION(ENABLE_HYPERSCAN "Enable hyperscan for fast regexp processing [default: OFF]" OFF) - +OPTION(ENABLE_FANN "Enable fann for neural network plugin [default: OFF]" OFF) INCLUDE(FindArch.cmake) TARGET_ARCHITECTURE(ARCH) @@ -644,6 +644,12 @@ IF(ENABLE_HYPERSCAN MATCHES "ON") ROOT ${HYPERSCAN_ROOT_DIR} MODULES hs) SET(WITH_HYPERSCAN 1) ENDIF() +IF (ENABLE_FANN MATCHES "ON") + ProcessPackage(FANN LIBRARY fann INCLUDE fann.h INCLUDE_SUFFIXES + include/fann + ROOT ${FANN_ROOT_DIR} MODULES fann) + SET(WITH_FANN 1) +ENDIF () #Check for openssl (required for dkim) IF(WITH_OPENSSL) |