2017-05-05 20:39:25 +00:00
|
|
|
include(${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake)
|
|
|
|
add_headers_and_sources(clickhouse_aggregate_functions .)
|
|
|
|
|
|
|
|
list(REMOVE_ITEM clickhouse_aggregate_functions_sources
|
|
|
|
AggregateFunctionFactory.cpp
|
2017-12-24 06:50:11 +00:00
|
|
|
AggregateFunctionCombinatorFactory.cpp
|
2020-06-18 08:21:01 +00:00
|
|
|
AggregateFunctionCount.cpp
|
2017-12-24 10:12:49 +00:00
|
|
|
AggregateFunctionState.cpp
|
2017-07-25 18:32:52 +00:00
|
|
|
parseAggregateFunctionParameters.cpp
|
2017-12-20 20:25:22 +00:00
|
|
|
FactoryHelpers.cpp
|
2017-05-05 20:39:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
list(REMOVE_ITEM clickhouse_aggregate_functions_headers
|
2017-12-24 06:50:11 +00:00
|
|
|
IAggregateFunction.h
|
|
|
|
IAggregateFunctionCombinator.h
|
2017-05-05 20:39:25 +00:00
|
|
|
AggregateFunctionFactory.h
|
2017-12-24 06:50:11 +00:00
|
|
|
AggregateFunctionCombinatorFactory.h
|
2020-06-18 08:21:01 +00:00
|
|
|
AggregateFunctionCount.h
|
2017-12-24 10:12:49 +00:00
|
|
|
AggregateFunctionState.h
|
2017-07-25 18:32:52 +00:00
|
|
|
parseAggregateFunctionParameters.h
|
2017-12-20 20:25:22 +00:00
|
|
|
FactoryHelpers.h
|
2017-05-05 20:39:25 +00:00
|
|
|
)
|
|
|
|
|
2019-04-24 09:06:28 +00:00
|
|
|
add_library(clickhouse_aggregate_functions ${clickhouse_aggregate_functions_sources})
|
2019-03-05 10:15:47 +00:00
|
|
|
target_link_libraries(clickhouse_aggregate_functions PRIVATE dbms PUBLIC ${CITYHASH_LIBRARIES})
|
2018-12-26 21:02:39 +00:00
|
|
|
|
2019-06-20 15:49:54 +00:00
|
|
|
if(ENABLE_TESTS)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|