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)
############################ 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)
######################### LINK SECTION ###############################
-
ADD_EXECUTABLE(rspamd ${RSPAMDSRC} ${CONTRIBSRC} ${TOKENIZERSSRC}
${CLASSIFIERSSRC} ${PLUGINSSRC})
SET_TARGET_PROPERTIES(rspamd 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