split libconsistent-hashing

This commit is contained in:
proller 2018-08-30 21:44:46 +03:00
parent b05c62be9f
commit 48766c1c2d
12 changed files with 7 additions and 7 deletions

View File

@ -91,7 +91,7 @@ list(REMOVE_ITEM clickhouse_functions_headers IFunction.h FunctionFactory.h Func
add_library(clickhouse_functions ${clickhouse_functions_sources})
target_link_libraries(clickhouse_functions PUBLIC dbms PRIVATE libconsistent-hashing ${FARMHASH_LIBRARIES} ${METROHASH_LIBRARIES} murmurhash)
target_link_libraries(clickhouse_functions PUBLIC dbms PRIVATE consistent-hashing consistent-hashing-sumbur ${FARMHASH_LIBRARIES} ${METROHASH_LIBRARIES} murmurhash)
target_include_directories (clickhouse_functions SYSTEM BEFORE PUBLIC ${DIVIDE_INCLUDE_DIR})

View File

@ -23,4 +23,5 @@ if (USE_MYSQL)
add_subdirectory (libmysqlxx)
endif ()
add_subdirectory (libconsistent-hashing)
add_subdirectory (consistent-hashing)
add_subdirectory (consistent-hashing-sumbur)

View File

@ -0,0 +1,2 @@
add_library(consistent-hashing-sumbur sumbur.cpp)
target_include_directories(consistent-hashing-sumbur PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

View File

@ -0,0 +1,2 @@
add_library(consistent-hashing consistent_hashing.cpp popcount.cpp)
target_include_directories(consistent-hashing PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

View File

@ -1,5 +0,0 @@
cmake_minimum_required(VERSION 2.8)
project(libconsistent-hashing CXX)
add_library(libconsistent-hashing yandex/consistent_hashing.cpp yandex/popcount.cpp mailru/sumbur.cpp)
target_include_directories(libconsistent-hashing PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})