summaryrefslogtreecommitdiffstats
path: root/contrib/lua-lpeg/CMakeLists.txt
blob: e8b3379359ad628c4126c0763ad3fa520954c688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SET(LPEGSRC lpcap.c
        lpcode.c
        lpprint.c
        lptree.c
        lpvm.c)

IF(ENABLE_FULL_DEBUG MATCHES "OFF")
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
    SET(LPEG_CFLAGS "${LPEG_CFLAGS} -O2")
endif ()
ENDIF()

SET(LIB_TYPE STATIC)
ADD_LIBRARY(rspamd-lpeg ${LIB_TYPE} ${LPEGSRC})
set_target_properties(rspamd-lpeg PROPERTIES COMPILE_FLAGS "${LPEG_CFLAGS}")