blob: 2e28d019e0c66e39527bf92dc43f843166333db2 (
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
25
26
27
28
|
SET(STATSHOWSRC statshow.c)
FOREACH(_rs ${CLASSIFIERSSRC} ${TOKENIZERSSRC})
LIST(APPEND STATSHOWSRC "../../${_rs}")
MESSAGE("${_rs}")
ENDFOREACH(_rs)
ADD_EXECUTABLE(statshow EXCLUDE_FROM_ALL ${STATSHOWSRC})
SET_TARGET_PROPERTIES(statshow PROPERTIES LINKER_LANGUAGE C)
SET_TARGET_PROPERTIES(statshow PROPERTIES COMPILE_FLAGS "-I../../src -DRSPAMD_MAIN")
TARGET_LINK_LIBRARIES(statshow rspamd_lua)
TARGET_LINK_LIBRARIES(statshow rspamdserver)
TARGET_LINK_LIBRARIES(statshow event)
IF(ENABLE_LUAJIT MATCHES "ON")
TARGET_LINK_LIBRARIES(statshow "${LUAJIT_LIBRARY}")
ELSE(ENABLE_LUAJIT MATCHES "ON")
TARGET_LINK_LIBRARIES(statshow "${LUA_LIBRARY}")
ENDIF(ENABLE_LUAJIT MATCHES "ON")
TARGET_LINK_LIBRARIES(statshow ${GLIB2_LIBRARIES})
TARGET_LINK_LIBRARIES(statshow ${CMAKE_REQUIRED_LIBRARIES})
IF(GMIME2_FOUND)
TARGET_LINK_LIBRARIES(statshow ${GMIME2_LIBRARIES})
ELSE(GMIME2_FOUND)
TARGET_LINK_LIBRARIES(statshow ${GMIME24_LIBRARIES})
ENDIF(GMIME2_FOUND)
IF(ENABLE_STATIC MATCHES "ON")
TARGET_LINK_LIBRARIES(statshow ${PCRE_LIBRARIES})
ENDIF(ENABLE_STATIC MATCHES "ON")
|