diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-13 23:45:06 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-13 23:45:06 +0000 |
commit | 1b94a3560cea4824cff6321e02baabb6972ecfdb (patch) | |
tree | 3886c251022a04de9e1531abc4e8077cbc505d41 /src/libstat/CMakeLists.txt | |
parent | 9d0fd4d7e5b5a3f3752d5c2f625fd6243da10704 (diff) | |
download | rspamd-1b94a3560cea4824cff6321e02baabb6972ecfdb.tar.gz rspamd-1b94a3560cea4824cff6321e02baabb6972ecfdb.zip |
Eliminate mess with linking.
Diffstat (limited to 'src/libstat/CMakeLists.txt')
-rw-r--r-- | src/libstat/CMakeLists.txt | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/src/libstat/CMakeLists.txt b/src/libstat/CMakeLists.txt index fc9450140..5d7184316 100644 --- a/src/libstat/CMakeLists.txt +++ b/src/libstat/CMakeLists.txt @@ -1,37 +1,19 @@ # Librspamdserver -SET(LIBSTATSRC stat_config.c - stat_process.c) +SET(LIBSTATSRC ${CMAKE_CURRENT_SOURCE_DIR}/stat_config.c + ${CMAKE_CURRENT_SOURCE_DIR}/stat_process.c) -SET(TOKENIZERSSRC tokenizers/tokenizers.c - tokenizers/osb.c) +SET(TOKENIZERSSRC ${CMAKE_CURRENT_SOURCE_DIR}/tokenizers/tokenizers.c + ${CMAKE_CURRENT_SOURCE_DIR}/tokenizers/osb.c) -SET(CLASSIFIERSSRC classifiers/bayes.c) +SET(CLASSIFIERSSRC ${CMAKE_CURRENT_SOURCE_DIR}/classifiers/bayes.c) -SET(BACKENDSSRC backends/mmaped_file.c) +SET(BACKENDSSRC ${CMAKE_CURRENT_SOURCE_DIR}/backends/mmaped_file.c) -SET(CACHESSRC learn_cache/sqlite3_cache.c) +SET(CACHESSRC ${CMAKE_CURRENT_SOURCE_DIR}/learn_cache/sqlite3_cache.c) -ADD_LIBRARY(rspamd-stat ${LINK_TYPE} ${LIBSTATSRC} +SET(RSPAMD_STAT ${LIBSTATSRC} ${TOKENIZERSSRC} ${CLASSIFIERSSRC} ${BACKENDSSRC} - ${CACHESSRC}) + ${CACHESSRC} PARENT_SCOPE) -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") -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") |