diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-14 20:36:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-14 20:36:50 +0100 |
commit | 3c967aea98e39d0834a9588e84b465116a764cb2 (patch) | |
tree | 2c4a8628cfcf93e666d69bb7045fe990213729dc /src/CMakeLists.txt | |
parent | 4effc0640c5a8d40b347c446b6b4c2ac4e936bb2 (diff) | |
download | rspamd-3c967aea98e39d0834a9588e84b465116a764cb2.tar.gz rspamd-3c967aea98e39d0834a9588e84b465116a764cb2.zip |
[Feature] Improve ragel build target
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c9f99a7a5..d4765ce79 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -102,12 +102,19 @@ ENDIF() AddModules(MODULES_LIST WORKERS_LIST) LIST(LENGTH PLUGINSSRC RSPAMD_MODULES_NUM) +SET(RAGEL_DEPENDS "${CMAKE_SOURCE_DIR}/src/ragel/smtp_address.rl" + "${CMAKE_SOURCE_DIR}/src/ragel/smtp_date.rl" + "${CMAKE_SOURCE_DIR}/src/ragel/smtp_ip.rl" + "${CMAKE_SOURCE_DIR}/src/ragel/smtp_whitespace.rl" + "${CMAKE_SOURCE_DIR}/src/ragel/smtp_received.rl") RAGEL_TARGET(ragel_smtp_addr - ragel/smtp_addr_parser.rl - ${CMAKE_CURRENT_BINARY_DIR}/smtp_addr_parser.rl.c) + INPUTS ragel/smtp_addr_parser.rl + DEPENDS ${RAGEL_DEPENDS} + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/smtp_addr_parser.rl.c) RAGEL_TARGET(ragel_smtp_received - ragel/smtp_received_parser.rl - ${CMAKE_CURRENT_BINARY_DIR}/smtp_received_parser.rl.c) + INPUTS ragel/smtp_received_parser.rl + DEPENDS ${RAGEL_DEPENDS} + OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/smtp_received_parser.rl.c) ######################### LINK SECTION ############################### ADD_LIBRARY(rspamd-server STATIC ${RSPAMD_CRYPTOBOX} ${RSPAMD_UTIL} ${RSPAMD_LUA} ${RSPAMD_SERVER} |