aboutsummaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-01-20 21:18:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-01-22 15:58:05 +0000
commite7da191495fe9327700900bbd81a8629af8430f5 (patch)
treefed45a1d84d322de1bdde623d355cec5ee9d474d /src/CMakeLists.txt
parente422091bab8dd0acc917439e8c0515ee1df1a740 (diff)
downloadrspamd-e7da191495fe9327700900bbd81a8629af8430f5.tar.gz
rspamd-e7da191495fe9327700900bbd81a8629af8430f5.zip
[Project] Add parsers skeleton
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt8
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)