2021-04-24 19:47:52 +00:00
|
|
|
include("${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake")
|
2018-11-28 11:37:12 +00:00
|
|
|
|
|
|
|
add_headers_and_sources(clickhouse_dictionaries .)
|
|
|
|
|
2021-04-24 19:47:52 +00:00
|
|
|
add_headers_and_sources(clickhouse_dictionaries "${CMAKE_CURRENT_BINARY_DIR}/generated/")
|
2018-11-28 11:37:12 +00:00
|
|
|
|
2021-06-15 19:18:17 +00:00
|
|
|
if (CMAKE_BUILD_TYPE_UC STREQUAL "RELEASE" OR CMAKE_BUILD_TYPE_UC STREQUAL "RELWITHDEBINFO" OR CMAKE_BUILD_TYPE_UC STREQUAL "MINSIZEREL")
|
|
|
|
|
|
|
|
# Won't generate debug info for files with heavy template instantiation to achieve faster linking and lower size.
|
|
|
|
set_source_files_properties(
|
|
|
|
FlatDictionary.cpp
|
|
|
|
HashedDictionary.cpp
|
2021-10-15 15:53:17 +00:00
|
|
|
HashedArrayDictionary.cpp
|
2021-06-15 19:18:17 +00:00
|
|
|
CacheDictionary.cpp
|
|
|
|
RangeHashedDictionary.cpp
|
|
|
|
DirectDictionary.cpp
|
|
|
|
PROPERTIES COMPILE_FLAGS -g0)
|
|
|
|
endif ()
|
|
|
|
|
2019-10-22 16:47:11 +00:00
|
|
|
list(REMOVE_ITEM clickhouse_dictionaries_sources DictionaryFactory.cpp DictionarySourceFactory.cpp DictionaryStructure.cpp getDictionaryConfigurationFromAST.cpp)
|
|
|
|
list(REMOVE_ITEM clickhouse_dictionaries_headers DictionaryFactory.h DictionarySourceFactory.h DictionaryStructure.h getDictionaryConfigurationFromAST.h)
|
2019-02-15 11:46:07 +00:00
|
|
|
|
2019-04-24 09:06:28 +00:00
|
|
|
add_library(clickhouse_dictionaries ${clickhouse_dictionaries_sources})
|
2018-11-28 11:37:12 +00:00
|
|
|
|
2020-05-08 14:11:19 +00:00
|
|
|
target_link_libraries(clickhouse_dictionaries
|
|
|
|
PRIVATE
|
|
|
|
clickhouse_common_io
|
|
|
|
dbms
|
|
|
|
Poco::Data
|
|
|
|
Poco::Data::ODBC
|
|
|
|
Poco::MongoDB
|
|
|
|
Poco::Redis
|
|
|
|
string_utils
|
|
|
|
)
|
2019-01-15 22:08:56 +00:00
|
|
|
|
2021-02-27 16:21:26 +00:00
|
|
|
target_link_libraries(clickhouse_dictionaries
|
|
|
|
PUBLIC
|
|
|
|
abseil_swiss_tables)
|
|
|
|
|
2020-05-19 02:21:27 +00:00
|
|
|
if(USE_CASSANDRA)
|
|
|
|
target_include_directories(clickhouse_dictionaries SYSTEM PRIVATE ${CASSANDRA_INCLUDE_DIR})
|
|
|
|
endif()
|
|
|
|
|
2018-11-28 11:37:12 +00:00
|
|
|
add_subdirectory(Embedded)
|
2019-09-20 23:22:40 +00:00
|
|
|
|
|
|
|
target_include_directories(clickhouse_dictionaries SYSTEM PRIVATE ${SPARSEHASH_INCLUDE_DIR})
|