link Storages/System via lib

This commit is contained in:
proller 2017-03-15 21:54:31 +03:00 committed by alexey-milovidov
parent 25caed0c03
commit d777cab172
5 changed files with 11 additions and 2 deletions

View File

@ -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()

View File

@ -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)

View File

@ -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)

View File

@ -1,3 +1,5 @@
add_subdirectory (System)
if (ENABLE_TESTS)
add_subdirectory (tests)
endif (ENABLE_TESTS)

View 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})