2024-11-22 10:24:05 +00:00
|
|
|
# See contrib/usearch-cmake/CMakeLists.txt, why only enabled on x86 and ARM
|
|
|
|
if (ARCH_AMD64 OR (ARCH_AARCH64 AND NOT NO_ARMV81_OR_HIGHER AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19))
|
2024-11-01 12:17:40 +00:00
|
|
|
set(SIMSIMD_PROJECT_DIR "${ClickHouse_SOURCE_DIR}/contrib/SimSIMD")
|
2024-11-01 12:55:02 +00:00
|
|
|
set(SIMSIMD_SRCS ${SIMSIMD_PROJECT_DIR}/c/lib.c)
|
|
|
|
add_library(_simsimd ${SIMSIMD_SRCS})
|
|
|
|
target_include_directories(_simsimd SYSTEM PUBLIC "${SIMSIMD_PROJECT_DIR}/include")
|
|
|
|
target_compile_definitions(_simsimd PUBLIC SIMSIMD_DYNAMIC_DISPATCH)
|
2024-11-01 12:17:40 +00:00
|
|
|
endif()
|