diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-05-11 19:11:05 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-05-11 19:11:05 +0400 |
commit | f7595acb30071eb5001b629f47f5606ea07e2a5a (patch) | |
tree | c4d588ff6e3e448b654ee1f7f628ea1757efb319 /CMakeLists.txt | |
parent | bc953ee7602b6a4278fc5c13a83ad570444f5cc6 (diff) | |
download | rspamd-f7595acb30071eb5001b629f47f5606ea07e2a5a.tar.gz rspamd-f7595acb30071eb5001b629f47f5606ea07e2a5a.zip |
Fix dependencies in cmake.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bbe628dd5..cbddacb6f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -563,6 +563,10 @@ SET(PLUGINSSRC src/plugins/surbl.c src/plugins/fuzzy_check.c src/plugins/spf.c) +ADD_CUSTOM_COMMAND(OUTPUT src/modules.c + COMMAND ../utils/gen-modules.sh ${PLUGINSSRC} + WORKING_DIRECTORY src) + ADD_SUBDIRECTORY(src/lua) ADD_SUBDIRECTORY(src/json) ADD_SUBDIRECTORY(src/cdb) @@ -578,9 +582,7 @@ LIST(LENGTH PLUGINSSRC RSPAMD_MODULES_NUM) ############################ TARGETS SECTION ############################### -ADD_CUSTOM_COMMAND(OUTPUT src/modules.c - COMMAND ../utils/gen-modules.sh ${PLUGINSSRC} - WORKING_DIRECTORY src) + CONFIGURE_FILE(config.h.in src/config.h) CONFIGURE_FILE(contrib/exim/local_scan.c.in contrib/exim/local_scan_rspamd.c @ONLY) @@ -588,7 +590,6 @@ CONFIGURE_FILE(rspamd.xml.sample conf/rspamd.xml.sample @ONLY) ######################### LINK SECTION ############################### - ADD_EXECUTABLE(rspamd ${RSPAMDSRC} ${CONTRIBSRC} ${TOKENIZERSSRC} ${CLASSIFIERSSRC} ${PLUGINSSRC}) SET_TARGET_PROPERTIES(rspamd PROPERTIES LINKER_LANGUAGE C) |