aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-05-11 19:11:05 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-05-11 19:11:05 +0400
commitf7595acb30071eb5001b629f47f5606ea07e2a5a (patch)
treec4d588ff6e3e448b654ee1f7f628ea1757efb319 /lib
parentbc953ee7602b6a4278fc5c13a83ad570444f5cc6 (diff)
downloadrspamd-f7595acb30071eb5001b629f47f5606ea07e2a5a.tar.gz
rspamd-f7595acb30071eb5001b629f47f5606ea07e2a5a.zip
Fix dependencies in cmake.
Diffstat (limited to 'lib')
-rw-r--r--lib/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 951551e62..2fdf37904 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -64,4 +64,9 @@ SET_TARGET_PROPERTIES(rspamdserver PROPERTIES LINKER_LANGUAGE C)
SET_TARGET_PROPERTIES(rspamdserver PROPERTIES COMPILE_FLAGS "-DRSPAMD_LIB")
TARGET_LINK_LIBRARIES(rspamdserver rspamd_lua)
TARGET_LINK_LIBRARIES(rspamdserver rspamd_json)
-TARGET_LINK_LIBRARIES(rspamdserver rspamd_cdb) \ No newline at end of file
+TARGET_LINK_LIBRARIES(rspamdserver rspamd_cdb)
+
+ADD_CUSTOM_TARGET(genmodules
+ COMMAND ../utils/gen-modules.sh ${PLUGINSSRC}
+ WORKING_DIRECTORY src)
+ADD_DEPENDENCIES(rspamdserver genmodules) \ No newline at end of file