blob: 2bf32c92eccbd29f93b202039adc136ecf2ef0d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
SET(LIBKANNSRC kautodiff.c kann.c)
IF(ENABLE_FULL_DEBUG MATCHES "OFF")
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3")
endif ()
ENDIF()
ADD_LIBRARY(rspamd-kann SHARED ${LIBKANNSRC})
IF(WITH_BLAS)
MESSAGE(STATUS "Use openblas to accelerate kann")
TARGET_LINK_LIBRARIES(rspamd-kann ${BLAS_REQUIRED_LIBRARIES})
ENDIF(WITH_BLAS)
INSTALL(TARGETS rspamd-kann LIBRARY DESTINATION ${RSPAMD_LIBDIR})
|