ClickHouse/libs/libdaemon/CMakeLists.txt
proller 4db8d09de9 Reorganize includes. part 1 (#921)
* Make libunwind optional. Allow use custom libcctz

* fix

* Fix

* fix

* Update BaseDaemon.cpp

* Update CMakeLists.txt

* Reorganize includes. part 1

* Update dbms_include.cmake

* Reorganize includes. part 2

* Reorganize includes. part 3

* dbms/src/Common/ThreadPool -> libs/libcommon

* Reorganize includes. part 4

* Fix print_include_directories

* Update thread_creation_latency.cpp

* Update StringRef.h
2017-06-23 23:22:35 +03:00

21 lines
567 B
CMake

include_directories (include)
add_library (daemon
src/BaseDaemon.cpp
src/GraphiteWriter.cpp
src/OwnPatternFormatter.cpp
include/daemon/BaseDaemon.h
include/daemon/GraphiteWriter.h
include/daemon/OwnPatternFormatter.h
)
if (USE_UNWIND)
target_include_directories (daemon BEFORE PRIVATE ${UNWIND_INCLUDE_DIR})
add_definitions(-DUSE_UNWIND=1)
target_link_libraries (daemon ${UNWIND_LIBRARY})
endif ()
target_link_libraries (daemon dbms)
target_include_directories (daemon PRIVATE ${ClickHouse_SOURCE_DIR}/libs/libpocoext/include)