diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-20 21:18:25 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-22 15:58:05 +0000 |
commit | e7da191495fe9327700900bbd81a8629af8430f5 (patch) | |
tree | fed45a1d84d322de1bdde623d355cec5ee9d474d /src/CMakeLists.txt | |
parent | e422091bab8dd0acc917439e8c0515ee1df1a740 (diff) | |
download | rspamd-e7da191495fe9327700900bbd81a8629af8430f5.tar.gz rspamd-e7da191495fe9327700900bbd81a8629af8430f5.zip |
[Project] Add parsers skeleton
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7285d8e7b..9b3f0b7b4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -143,6 +143,10 @@ RAGEL_TARGET(ragel_smtp_ip DEPENDS ${RAGEL_DEPENDS} COMPILE_FLAGS -G2 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/ip_parser.rl.c) +# Fucking cmake... +FOREACH(_GEN ${LIBSERVER_GENERATED}) + set_source_files_properties(${_GEN} PROPERTIES GENERATED TRUE) +ENDFOREACH() ######################### LINK SECTION ############################### IF(ENABLE_STATIC MATCHES "ON") @@ -181,6 +185,10 @@ ELSE() "${RAGEL_ragel_smtp_ip_OUTPUTS}") ENDIF() +FOREACH(_DEP ${LIBSERVER_DEPENDS}) + ADD_DEPENDENCIES(rspamd-server "${_DEP}") +ENDFOREACH() + TARGET_LINK_LIBRARIES(rspamd-server rspamd-http-parser) TARGET_LINK_LIBRARIES(rspamd-server rspamd-fpconv) TARGET_LINK_LIBRARIES(rspamd-server rspamd-cdb) |