2020-06-09 10:54:49 +00:00
|
|
|
set (CLICKHOUSE_LOCAL_SOURCES LocalServer.cpp)
|
|
|
|
|
|
|
|
set (CLICKHOUSE_LOCAL_LINK
|
|
|
|
PRIVATE
|
|
|
|
boost::program_options
|
|
|
|
clickhouse_aggregate_functions
|
|
|
|
clickhouse_common_config
|
|
|
|
clickhouse_common_io
|
|
|
|
clickhouse_functions
|
|
|
|
clickhouse_parsers
|
|
|
|
clickhouse_storages_system
|
|
|
|
clickhouse_table_functions
|
|
|
|
)
|
2018-06-05 20:09:51 +00:00
|
|
|
|
2019-03-04 17:47:31 +00:00
|
|
|
clickhouse_program_add(local)
|
|
|
|
|
2023-01-03 18:51:10 +00:00
|
|
|
target_link_libraries(clickhouse-local-lib PRIVATE clickhouse-server-lib)
|
2021-08-10 11:52:34 +00:00
|
|
|
|
2022-12-10 10:16:31 +00:00
|
|
|
if (TARGET ch_rust::skim)
|
|
|
|
target_link_libraries(clickhouse-local-lib PRIVATE ch_rust::skim)
|
|
|
|
endif()
|
2023-01-30 19:00:48 +00:00
|
|
|
if (TARGET ch_contrib::azure_sdk)
|
|
|
|
target_link_libraries(clickhouse-local-lib PRIVATE ch_contrib::azure_sdk)
|
|
|
|
endif()
|
2022-12-10 10:16:31 +00:00
|
|
|
|
2022-08-21 10:12:11 +00:00
|
|
|
# Always use internal readpassphrase
|
|
|
|
target_link_libraries(clickhouse-local-lib PRIVATE readpassphrase)
|
|
|
|
|
2021-08-10 11:52:34 +00:00
|
|
|
if (ENABLE_FUZZING)
|
|
|
|
add_compile_definitions(FUZZING_MODE=1)
|
2021-09-01 13:24:31 +00:00
|
|
|
set (WITH_COVERAGE ON)
|
2021-10-07 18:01:36 +00:00
|
|
|
target_link_libraries(clickhouse-local-lib PRIVATE ${LIB_FUZZING_ENGINE})
|
2021-08-10 11:52:34 +00:00
|
|
|
endif ()
|