aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-13 23:45:06 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-13 23:45:06 +0000
commit1b94a3560cea4824cff6321e02baabb6972ecfdb (patch)
tree3886c251022a04de9e1531abc4e8077cbc505d41 /src/libserver/CMakeLists.txt
parent9d0fd4d7e5b5a3f3752d5c2f625fd6243da10704 (diff)
downloadrspamd-1b94a3560cea4824cff6321e02baabb6972ecfdb.tar.gz
rspamd-1b94a3560cea4824cff6321e02baabb6972ecfdb.zip
Eliminate mess with linking.
Diffstat (limited to 'src/libserver/CMakeLists.txt')
-rw-r--r--src/libserver/CMakeLists.txt70
1 files changed, 18 insertions, 52 deletions
diff --git a/src/libserver/CMakeLists.txt b/src/libserver/CMakeLists.txt
index 93662b6b7..4edbe054d 100644
--- a/src/libserver/CMakeLists.txt
+++ b/src/libserver/CMakeLists.txt
@@ -1,56 +1,22 @@
# Librspamdserver
SET(LIBRSPAMDSERVERSRC
- buffer.c
- cfg_utils.c
- cfg_rcl.c
- dkim.c
- dns.c
- dynamic_cfg.c
- events.c
- fuzzy_backend.c
- html.c
- protocol.c
- proxy.c
- roll_history.c
- spf.c
- symbols_cache.c
- task.c
- url.c
- worker_util.c)
+ ${CMAKE_CURRENT_SOURCE_DIR}/buffer.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/cfg_utils.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/cfg_rcl.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/dkim.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/dns.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/dynamic_cfg.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/events.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/fuzzy_backend.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/html.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/protocol.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/proxy.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/roll_history.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/spf.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/symbols_cache.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/task.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/url.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/worker_util.c)
# Librspamd-server
-
-#IF(WITH_DB)
-# LIST(APPEND LIBRSPAMDSERVERSRC kvstorage_bdb.c)
-#ENDIF(WITH_DB)
-#IF(WITH_SQLITE)
-# LIST(APPEND LIBRSPAMDSERVERSRC kvstorage_sqlite.c)
-#ENDIF(WITH_SQLITE)
-
-ADD_LIBRARY(rspamd-server ${LINK_TYPE} ${LIBRSPAMDSERVERSRC})
-IF(NOT DEBIAN_BUILD)
- SET_TARGET_PROPERTIES(rspamd-server PROPERTIES VERSION ${RSPAMD_VERSION})
-ENDIF(NOT DEBIAN_BUILD)
-SET_TARGET_PROPERTIES(rspamd-server PROPERTIES LINKER_LANGUAGE C COMPILE_FLAGS "-DRSPAMD_LIB")
-TARGET_LINK_LIBRARIES(rspamd-server rspamd-lua)
-TARGET_LINK_LIBRARIES(rspamd-server rspamd-cdb)
-TARGET_LINK_LIBRARIES(rspamd-server rspamd-util)
-TARGET_LINK_LIBRARIES(rspamd-server sqlite3)
-TARGET_LINK_LIBRARIES(rspamd-server rdns)
-IF(CMAKE_COMPILER_IS_GNUCC)
-SET_TARGET_PROPERTIES(rspamd-server PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB -fno-strict-aliasing")
-ENDIF(CMAKE_COMPILER_IS_GNUCC)
-
-IF(WITH_DB)
- TARGET_LINK_LIBRARIES(rspamd-server db)
-ENDIF(WITH_DB)
-
-IF(OPENSSL_FOUND)
- TARGET_LINK_LIBRARIES(rspamd-server ${OPENSSL_LIBRARIES})
-ENDIF(OPENSSL_FOUND)
-
-IF(NO_SHARED MATCHES "OFF")
- INSTALL(TARGETS rspamd-server
- LIBRARY DESTINATION ${LIBDIR}
- PUBLIC_HEADER DESTINATION ${INCLUDEDIR})
-ENDIF(NO_SHARED MATCHES "OFF")
+SET(RSPAMD_SERVER ${LIBRSPAMDSERVERSRC} PARENT_SCOPE)