aboutsummaryrefslogtreecommitdiffstats
path: root/test
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 /test
parent9d0fd4d7e5b5a3f3752d5c2f625fd6243da10704 (diff)
downloadrspamd-1b94a3560cea4824cff6321e02baabb6972ecfdb.tar.gz
rspamd-1b94a3560cea4824cff6321e02baabb6972ecfdb.zip
Eliminate mess with linking.
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt37
1 files changed, 1 insertions, 36 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 99c825199..f5743bd2f 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -17,40 +17,5 @@ ADD_EXECUTABLE(rspamd-test EXCLUDE_FROM_ALL ${TESTSRC})
SET_TARGET_PROPERTIES(rspamd-test PROPERTIES LINKER_LANGUAGE C)
SET_TARGET_PROPERTIES(rspamd-test PROPERTIES COMPILE_FLAGS "-DRSPAMD_TEST")
-TARGET_LINK_LIBRARIES(rspamd-test rspamd-stat)
-TARGET_LINK_LIBRARIES(rspamd-test rspamd-mime)
TARGET_LINK_LIBRARIES(rspamd-test rspamd-server)
-TARGET_LINK_LIBRARIES(rspamd-test rspamd-util)
-TARGET_LINK_LIBRARIES(rspamd-test rspamd-lua)
-TARGET_LINK_LIBRARIES(rspamd-test rspamd-cryptobox)
-TARGET_LINK_LIBRARIES(rspamd-test stemmer)
-
-TARGET_LINK_LIBRARIES(rspamd-test event)
-IF(HAVE_LIBEVENT2)
- TARGET_LINK_LIBRARIES(rspamd-test event_pthreads)
-ENDIF(HAVE_LIBEVENT2)
-IF(WITH_DB)
- TARGET_LINK_LIBRARIES(rspamd-test db)
-ENDIF(WITH_DB)
-
-IF(OPENSSL_FOUND)
- TARGET_LINK_LIBRARIES(rspamd-test ${OPENSSL_LIBRARIES})
-ENDIF(OPENSSL_FOUND)
-IF(HAVE_FETCH_H)
- TARGET_LINK_LIBRARIES(rspamd-test fetch)
-ENDIF(HAVE_FETCH_H)
-TARGET_LINK_LIBRARIES(rspamd-test ${RSPAMD_REQUIRED_LIBRARIES})
-
-IF(ENABLE_LUAJIT MATCHES "ON")
- TARGET_LINK_LIBRARIES(rspamd-test "${LUAJIT_LIBRARY}")
-ELSE(ENABLE_LUAJIT MATCHES "ON")
- TARGET_LINK_LIBRARIES(rspamd-test "${LUA_LIBRARY}")
-ENDIF(ENABLE_LUAJIT MATCHES "ON")
-
-IF(ENABLE_GPERF_TOOLS MATCHES "ON")
- TARGET_LINK_LIBRARIES(rspamd-test profiler)
-ENDIF(ENABLE_GPERF_TOOLS MATCHES "ON")
-TARGET_LINK_LIBRARIES(rspamd-test hiredis)
-IF(GLIB_COMPAT)
- TARGET_LINK_LIBRARIES(rspamd-test glibadditions)
-ENDIF(GLIB_COMPAT) \ No newline at end of file
+TARGET_LINK_LIBRARIES(rspamd-test ${RSPAMD_REQUIRED_LIBRARIES}) \ No newline at end of file