summaryrefslogtreecommitdiffstats
path: root/cmake/deps.cmake
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-03-13 16:11:56 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-03-13 16:11:56 +0100
commit8c85a34aac807cd41077f6e32441047b4aea0db5 (patch)
tree8347b0afe41c004a5d60285eaeaa2c1e80ff7870 /cmake/deps.cmake
parente715379e49483f8200abec5bc7ff48f70d73a0cf (diff)
downloadfastd-8c85a34aac807cd41077f6e32441047b4aea0db5.tar
fastd-8c85a34aac807cd41077f6e32441047b4aea0db5.zip
Better systemd integration (enable with ENABLE_SYSTEMD cmake flag)
Diffstat (limited to 'cmake/deps.cmake')
-rw-r--r--cmake/deps.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/deps.cmake b/cmake/deps.cmake
index d9dff1e..98c7582 100644
--- a/cmake/deps.cmake
+++ b/cmake/deps.cmake
@@ -52,6 +52,16 @@ else(ENABLE_OPENSSL)
set(OPENSSL_CRYPTO_LDFLAGS_OTHER "")
endif(ENABLE_OPENSSL)
+if(ENABLE_SYSTEMD)
+ pkg_check_modules(SYSTEMD_DAEMON REQUIRED libsystemd-daemon)
+else(ENABLE_SYSTEMD)
+ set(SYSTEMD_DAEMON_INCLUDE_DIRS "")
+ set(SYSTEMD_DAEMON_CFLAGS_OTHER "")
+ set(SYSTEMD_DAEMON_LIBRARY_DIRS "")
+ set(SYSTEMD_DAEMON_LIBRARIES "")
+ set(SYSTEMD_DAEMON_LDFLAGS_OTHER "")
+endif(ENABLE_SYSTEMD)
+
if(WITH_CAPABILITIES)
find_package(CAP REQUIRED)