summaryrefslogtreecommitdiffstats
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-01 20:14:32 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-01 20:14:32 +0400
commit9d703560099beea2b2b53c533e7f71dc926293b2 (patch)
treed60df5c9d3f7dbb9931dc1243362d1808f1ff459 /test/CMakeLists.txt
parent7dcf9f9bade26ca02b8706a2e4cb2066f6ba7b00 (diff)
downloadrspamd-9d703560099beea2b2b53c533e7f71dc926293b2.tar.gz
rspamd-9d703560099beea2b2b53c533e7f71dc926293b2.zip
Separate librspamdserver API from plugins and workers functions.
Make tests compileable again.
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index c6011d2a8..c15f77b75 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -15,6 +15,10 @@ TARGET_LINK_LIBRARIES(rspamd-test rspamdserver)
TARGET_LINK_LIBRARIES(rspamd-test event)
TARGET_LINK_LIBRARIES(rspamd-test ${GLIB2_LIBRARIES})
TARGET_LINK_LIBRARIES(rspamd-test ${CMAKE_REQUIRED_LIBRARIES})
+IF(HAVE_LIBEVENT2)
+ TARGET_LINK_LIBRARIES(rspamd-test event_pthreads)
+ENDIF(HAVE_LIBEVENT2)
+INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/src")
IF(GMIME2_FOUND)
TARGET_LINK_LIBRARIES(rspamd-test ${GMIME2_LIBRARIES})
ELSE(GMIME2_FOUND)