ClickHouse/libs/libdaemon/CMakeLists.txt
Nikita Lapkov 4c55802552 refactor
- add exceptions on timer errors
- move from signal to sigaction
- extract backtrace collection logic
2019-01-18 13:10:43 +00:00

28 lines
1.0 KiB
CMake

add_library (daemon ${LINK_MODE}
src/BaseDaemon.cpp
src/GraphiteWriter.cpp
src/ExtendedLogChannel.cpp
src/OwnPatternFormatter.cpp
src/OwnFormattingChannel.cpp
src/OwnSplitChannel.cpp
src/Backtrace.cpp
include/daemon/BaseDaemon.h
include/daemon/GraphiteWriter.h
include/daemon/ExtendedLogChannel.h
include/daemon/OwnPatternFormatter.h
include/daemon/OwnFormattingChannel.h
include/daemon/OwnSplitChannel.h
include/daemon/Backtrace.h)
if (USE_UNWIND)
target_compile_definitions (daemon PRIVATE USE_UNWIND=1)
target_include_directories (daemon BEFORE PRIVATE ${UNWIND_INCLUDE_DIR})
target_link_libraries (daemon PRIVATE ${UNWIND_LIBRARY})
endif ()
target_include_directories (daemon PUBLIC include)
target_include_directories (daemon PRIVATE ${ClickHouse_SOURCE_DIR}/libs/libpocoext/include)
target_link_libraries (daemon PRIVATE clickhouse_common_io clickhouse_common_config common ${Poco_Net_LIBRARY} ${Poco_Util_LIBRARY} ${EXECINFO_LIBRARY} ${ELF_LIBRARY})