mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
d7211f9d12
Registers usearch and annoy properly via configure_config.cmake and config.h.in like all other 3rd party libs, instead of (mis)using target_compile_definitions.
15 lines
546 B
CMake
15 lines
546 B
CMake
set(FP16_PROJECT_DIR "${ClickHouse_SOURCE_DIR}/contrib/FP16")
|
|
set(ROBIN_MAP_PROJECT_DIR "${ClickHouse_SOURCE_DIR}/contrib/robin-map")
|
|
set(SIMSIMD_PROJECT_DIR "${ClickHouse_SOURCE_DIR}/contrib/SimSIMD")
|
|
set(USEARCH_PROJECT_DIR "${ClickHouse_SOURCE_DIR}/contrib/usearch")
|
|
|
|
add_library(_usearch INTERFACE)
|
|
|
|
target_include_directories(_usearch SYSTEM INTERFACE
|
|
${FP16_PROJECT_DIR}/include
|
|
${ROBIN_MAP_PROJECT_DIR}/include
|
|
${SIMSIMD_PROJECT_DIR}/include
|
|
${USEARCH_PROJECT_DIR}/include)
|
|
|
|
add_library(ch_contrib::usearch ALIAS _usearch)
|