ClickHouse/base/loggers/CMakeLists.txt

14 lines
660 B
CMake
Raw Normal View History

include("${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake")
add_headers_and_sources(loggers .)
2022-03-03 20:27:46 +00:00
# Standart version depends on DBMS and works with text log
add_library(loggers ${loggers_sources} ${loggers_headers})
2022-03-04 18:39:11 +00:00
target_compile_definitions(loggers PUBLIC WITH_TEXT_LOG=1)
target_link_libraries(loggers PRIVATE dbms clickhouse_common_io)
target_include_directories(loggers PUBLIC ..)
2022-03-03 20:27:46 +00:00
# Lightweight version doesn't work with textlog and also doesn't depend on DBMS
add_library(loggers_no_text_log ${loggers_sources} ${loggers_headers})
target_link_libraries(loggers_no_text_log PRIVATE clickhouse_common_io)
target_include_directories(loggers PUBLIC ..)