From b5597411a2a4f9b46c0076ccddb95f8eacc1cb7f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 16 Jan 2015 15:28:40 +0000 Subject: Reorganize statfiles and classifiers into libstat. --- src/libstat/CMakeLists.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/libstat/CMakeLists.txt (limited to 'src/libstat/CMakeLists.txt') diff --git a/src/libstat/CMakeLists.txt b/src/libstat/CMakeLists.txt new file mode 100644 index 000000000..6254a41a6 --- /dev/null +++ b/src/libstat/CMakeLists.txt @@ -0,0 +1,27 @@ +# Librspamdserver +SET(LIBSTATSRC + ) +SET(TOKENIZERSSRC tokenizers/tokenizers.c + tokenizers/osb.c) + +SET(CLASSIFIERSSRC classifiers/classifiers.c + classifiers/bayes.c + classifiers/winnow.c) + +ADD_LIBRARY(rspamd-stat ${LINK_TYPE} ${LIBSTATSRC} ${TOKENIZERSSRC} ${CLASSIFIERSSRC}) +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) + +IF(CMAKE_COMPILER_IS_GNUCC) +SET_TARGET_PROPERTIES(rspamd-stat PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB -fno-strict-aliasing") +ENDIF(CMAKE_COMPILER_IS_GNUCC) + + +IF(NO_SHARED MATCHES "OFF") + INSTALL(TARGETS rspamd-stat + LIBRARY DESTINATION ${LIBDIR} + PUBLIC_HEADER DESTINATION ${INCLUDEDIR}) +ENDIF(NO_SHARED MATCHES "OFF") -- cgit v1.2.3