mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
4843e210c3
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
22 lines
826 B
CMake
22 lines
826 B
CMake
include("${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake")
|
|
add_headers_and_sources(clickhouse_table_functions .)
|
|
if (TARGET ch_contrib::hivemetastore)
|
|
add_headers_and_sources(clickhouse_table_functions Hive)
|
|
endif ()
|
|
|
|
list(REMOVE_ITEM clickhouse_table_functions_sources
|
|
ITableFunction.cpp
|
|
TableFunctionView.cpp
|
|
TableFunctionFactory.cpp)
|
|
list(REMOVE_ITEM clickhouse_table_functions_headers
|
|
ITableFunction.h
|
|
TableFunctionView.h
|
|
TableFunctionFactory.h)
|
|
|
|
add_library(clickhouse_table_functions ${clickhouse_table_functions_sources})
|
|
|
|
target_link_libraries(clickhouse_table_functions PRIVATE clickhouse_parsers clickhouse_storages_system dbms)
|
|
if (TARGET ch_contrib::hivemetastore)
|
|
target_link_libraries(clickhouse_table_functions PRIVATE ch_contrib::hivemetastore ch_contrib::hdfs)
|
|
endif ()
|