summaryrefslogtreecommitdiff
path: root/examples/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r--examples/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 23b6a92..214898b 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -37,6 +37,12 @@ IF (LIBUV)
TARGET_LINK_LIBRARIES(example-libuv hiredis uv)
ENDIF()
+FIND_PATH(LIBSDEVENT systemd/sd-event.h)
+IF (LIBSDEVENT)
+ ADD_EXECUTABLE(example-libsdevent example-libsdevent.c)
+ TARGET_LINK_LIBRARIES(example-libsdevent hiredis systemd)
+ENDIF()
+
IF (APPLE)
FIND_LIBRARY(CF CoreFoundation)
ADD_EXECUTABLE(example-macosx example-macosx.c)