Add support for systemd-daemon
This commit is contained in:
@@ -19,6 +19,7 @@ find_package(Iconv REQUIRED)
|
||||
include(FindEXPAT)
|
||||
find_package(EXPAT REQUIRED)
|
||||
find_package(Libidn)
|
||||
find_package(SystemdDaemon)
|
||||
|
||||
# To be able to include the config.h file generated by cmake
|
||||
include_directories("src/")
|
||||
@@ -31,6 +32,12 @@ else()
|
||||
message("Building without stringprep support.")
|
||||
endif()
|
||||
|
||||
if(SYSTEMDDAEMON_FOUND)
|
||||
include_directories(${SYSTEMDDAEMON_INCLUDE_DIRS})
|
||||
else()
|
||||
message("Building without systemd daemon support.")
|
||||
endif()
|
||||
|
||||
set(POLLER "POLL" CACHE STRING
|
||||
"Choose the poller between POLL and EPOLL (Linux-only)")
|
||||
if((NOT ${POLLER} MATCHES "POLL") AND
|
||||
@@ -124,6 +131,9 @@ target_link_libraries(${PROJECT_NAME}
|
||||
bridge
|
||||
utils
|
||||
config)
|
||||
if(SYSTEMDDAEMON_FOUND)
|
||||
target_link_libraries(xmpp ${SYSTEMDDAEMON_LIBRARIES})
|
||||
endif()
|
||||
if(WITH_DOC)
|
||||
add_dependencies(${PROJECT_NAME} doc)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user