diff options
Diffstat (limited to 'contrib/t1ha/CMakeLists.txt')
-rw-r--r-- | contrib/t1ha/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/t1ha/CMakeLists.txt b/contrib/t1ha/CMakeLists.txt new file mode 100644 index 000000000..1b54c96d4 --- /dev/null +++ b/contrib/t1ha/CMakeLists.txt @@ -0,0 +1,14 @@ +SET(T1HASRC t1ha0.c + t1ha0_ia32aes_noavx.c + t1ha1.c + t1ha2.c) + +ADD_LIBRARY(rspamd-t1ha STATIC ${T1HASRC}) +SET_TARGET_PROPERTIES(rspamd-t1ha PROPERTIES VERSION ${RSPAMD_VERSION}) +ADD_DEFINITIONS("-DT1HA_USE_FAST_ONESHOT_READ=1") + +IF(ENABLE_FULL_DEBUG MATCHES "OFF") + if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU") + SET_TARGET_PROPERTIES(rspamd-t1ha PROPERTIES COMPILE_FLAGS "-O3") + endif () +ENDIF() |