mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
link Storages/System via lib
This commit is contained in:
parent
25caed0c03
commit
d777cab172
@ -11,3 +11,7 @@ endmacro()
|
||||
macro(add_headers_only prefix common_path)
|
||||
add_glob(${prefix}_headers RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} include/DB/${common_path}/*.h src/${common_path}/*.h)
|
||||
endmacro()
|
||||
|
||||
macro(add_path_sources prefix common_path)
|
||||
add_glob(${prefix}_sources ${common_path}/*.cpp)
|
||||
endmacro()
|
||||
|
@ -47,7 +47,6 @@ add_headers_and_sources(dbms Columns)
|
||||
add_headers_and_sources(dbms Storages)
|
||||
add_headers_and_sources(dbms Storages/Distributed)
|
||||
add_headers_and_sources(dbms Storages/MergeTree)
|
||||
add_headers_and_sources(dbms Storages/System)
|
||||
add_headers_and_sources(dbms Core)
|
||||
add_headers_and_sources(dbms Client)
|
||||
add_headers_only(dbms Server)
|
||||
|
@ -8,7 +8,7 @@ add_library(clickhouse-server
|
||||
StatusFile.cpp
|
||||
ReplicasStatusHandler.cpp
|
||||
)
|
||||
target_link_libraries(clickhouse-server daemon)
|
||||
target_link_libraries(clickhouse-server daemon storages_system)
|
||||
|
||||
add_library(clickhouse-local LocalServer.cpp)
|
||||
target_link_libraries(clickhouse-local dbms)
|
||||
|
@ -1,3 +1,5 @@
|
||||
add_subdirectory (System)
|
||||
|
||||
if (ENABLE_TESTS)
|
||||
add_subdirectory (tests)
|
||||
endif (ENABLE_TESTS)
|
||||
|
4
dbms/src/Storages/System/CMakeLists.txt
Normal file
4
dbms/src/Storages/System/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
include(${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake)
|
||||
add_path_sources(storages_system .)
|
||||
add_library(storages_system ${storages_system_sources})
|
Loading…
Reference in New Issue
Block a user