diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 21:30:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 21:30:40 +0000 |
commit | 133a45c109da5310add55824db21af5239951f93 (patch) | |
tree | ba6ac4c0a950a0dda56451944315d66409923918 /contrib/kann/CMakeLists.txt | |
parent | Initial commit. (diff) | |
download | rspamd-133a45c109da5310add55824db21af5239951f93.tar.xz rspamd-133a45c109da5310add55824db21af5239951f93.zip |
Adding upstream version 3.8.1.upstream/3.8.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'contrib/kann/CMakeLists.txt')
-rw-r--r-- | contrib/kann/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/kann/CMakeLists.txt b/contrib/kann/CMakeLists.txt new file mode 100644 index 0000000..5f1b17a --- /dev/null +++ b/contrib/kann/CMakeLists.txt @@ -0,0 +1,16 @@ +SET(LIBKANNSRC kautodiff.c kann.c) + +IF(ENABLE_STATIC MATCHES "ON") + ADD_LIBRARY(rspamd-kann STATIC ${LIBKANNSRC}) +ELSE() + ADD_LIBRARY(rspamd-kann SHARED ${LIBKANNSRC}) +ENDIF() + +target_link_libraries(rspamd-kann "${RSPAMD_REQUIRED_LIBRARIES}") +target_link_libraries(rspamd-kann "m") +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})
\ No newline at end of file |