aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm/CMakeLists.txt
blob: 7d693c388895523f6ee7e3e7fa1155a961f30f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SET(RSPAMADMSRC rspamadm.c commands.c pw.c keypair.c configtest.c
        ${CMAKE_BINARY_DIR}/src/workers.c
        ${CMAKE_BINARY_DIR}/src/modules.c
        ${CMAKE_SOURCE_DIR}/src/controller.c
        ${CMAKE_SOURCE_DIR}/src/fuzzy_storage.c
        ${CMAKE_SOURCE_DIR}/src/lua_worker.c
        ${CMAKE_SOURCE_DIR}/src/smtp_proxy.c
        ${CMAKE_SOURCE_DIR}/src/worker.c
        ${CMAKE_SOURCE_DIR}/src/http_proxy.c fuzzy_merge.c configdump.c control.c)

ADD_EXECUTABLE(rspamadm ${RSPAMADMSRC})
TARGET_LINK_LIBRARIES(rspamadm rspamd-server)
TARGET_LINK_LIBRARIES(rspamadm ${RSPAMD_REQUIRED_LIBRARIES})

IF (ENABLE_SNOWBALL MATCHES "ON")
    TARGET_LINK_LIBRARIES(rspamadm stemmer)
ENDIF()
TARGET_LINK_LIBRARIES(rspamadm rspamd-actrie)

IF (NOT DEBIAN_BUILD)
    SET_TARGET_PROPERTIES(rspamadm PROPERTIES VERSION ${RSPAMD_VERSION})
ENDIF (NOT DEBIAN_BUILD)

INSTALL(TARGETS rspamadm RUNTIME DESTINATION bin)