2022-03-25 18:22:59 +00:00
|
|
|
set(SPOTIFY_ANNOY_PROJECT_DIR "${ClickHouse_SOURCE_DIR}/contrib/spotify-annoy")
|
2022-03-25 12:48:04 +00:00
|
|
|
set(SPOTIFY_ANNOY_SOURCE_DIR "${SPOTIFY_ANNOY_PROJECT_DIR}/src")
|
2022-05-12 21:17:31 +00:00
|
|
|
set(SPOTIFY_ANNOY_INCLUDE_DIR "${SPOTIFY_ANNOY_PROJECT_DIR}/src")
|
2022-03-25 18:22:59 +00:00
|
|
|
|
|
|
|
set(SPOTIFY_ANNOY_HEADERS
|
|
|
|
${SPOTIFY_ANNOY_SOURCE_DIR}/annoylib.h
|
|
|
|
${SPOTIFY_ANNOY_SOURCE_DIR}/kissrandom.h
|
|
|
|
)
|
2022-03-25 12:48:04 +00:00
|
|
|
|
2022-03-25 18:22:59 +00:00
|
|
|
set(SPOTIFY_ANNOY_SRC
|
|
|
|
${SPOTIFY_ANNOY_SOURCE_DIR}/mman.h
|
|
|
|
)
|
2022-03-25 12:48:04 +00:00
|
|
|
|
2022-03-25 18:22:59 +00:00
|
|
|
add_library(_spotify_annoy ${SPOTIFY_ANNOY_SRC})
|
|
|
|
target_include_directories(_spotify_annoy SYSTEM PUBLIC ${SPOTIFY_ANNOY_SOURCE_DIR})
|
2022-03-25 12:48:04 +00:00
|
|
|
|
2022-03-25 18:22:59 +00:00
|
|
|
add_library(ch_contrib::spotify-annoy ALIAS _spotify_annoy)
|