diff --git a/contrib/FP16-cmake/CMakeLists.txt b/contrib/FP16-cmake/CMakeLists.txt index f82ad705dcc..be67ee88e8b 100644 --- a/contrib/FP16-cmake/CMakeLists.txt +++ b/contrib/FP16-cmake/CMakeLists.txt @@ -1 +1,4 @@ -# See contrib/usearch-cmake/CMakeLists.txt +set (FP16_PROJECT_DIR "${ClickHouse_SOURCE_DIR}/contrib/FP16/") + +add_library(_fp16 INTERFACE) +target_include_directories(_fp16 SYSTEM INTERFACE ${FP16_PROJECT_DIR}/include) diff --git a/contrib/SimSIMD-cmake/CMakeLists.txt b/contrib/SimSIMD-cmake/CMakeLists.txt index f82ad705dcc..f5dc4d63604 100644 --- a/contrib/SimSIMD-cmake/CMakeLists.txt +++ b/contrib/SimSIMD-cmake/CMakeLists.txt @@ -1 +1,4 @@ -# See contrib/usearch-cmake/CMakeLists.txt +set(SIMSIMD_PROJECT_DIR "${ClickHouse_SOURCE_DIR}/contrib/SimSIMD") + +add_library(_simsimd INTERFACE) +target_include_directories(_simsimd SYSTEM INTERFACE "${SIMSIMD_PROJECT_DIR}/include") diff --git a/contrib/usearch-cmake/CMakeLists.txt b/contrib/usearch-cmake/CMakeLists.txt index df131e0c528..25f6ca82a74 100644 --- a/contrib/usearch-cmake/CMakeLists.txt +++ b/contrib/usearch-cmake/CMakeLists.txt @@ -1,14 +1,9 @@ -set(FP16_PROJECT_DIR "${ClickHouse_SOURCE_DIR}/contrib/FP16") -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 ${USEARCH_PROJECT_DIR}/include) -target_include_directories(_usearch SYSTEM INTERFACE - ${FP16_PROJECT_DIR}/include - ${SIMSIMD_PROJECT_DIR}/include - ${USEARCH_PROJECT_DIR}/include) - +target_link_libraries(_usearch INTERFACE _fp16) target_compile_definitions(_usearch INTERFACE USEARCH_USE_FP16LIB) # target_compile_definitions(_usearch INTERFACE USEARCH_USE_SIMSIMD)