aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libottery/CMakeLists.txt
blob: 7e504605b7239dc5ec6936ca8db756b63af1bbd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
SET(OTTERYSRC            chacha_merged.c
                         ottery.c
                         ottery_cpuinfo.c
                         ottery_entropy.c
                         ottery_global.c chacha_cryptobox.c)
ADD_LIBRARY(ottery STATIC ${OTTERYSRC})

SET(OTTERY_CFLAGS "-DBUILD_RSPAMD")
IF(ENABLE_FULL_DEBUG MATCHES "OFF")
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
    SET(OTTERY_CFLAGS "${OTTERY_CFLAGS} -O3")
endif ()
ENDIF()
set_target_properties(ottery PROPERTIES COMPILE_FLAGS "${OTTERY_CFLAGS}")