aboutsummaryrefslogtreecommitdiff
path: root/session/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'session/CMakeLists.txt')
-rw-r--r--session/CMakeLists.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/session/CMakeLists.txt b/session/CMakeLists.txt
new file mode 100644
index 00000000..304f3220
--- /dev/null
+++ b/session/CMakeLists.txt
@@ -0,0 +1,24 @@
+include_directories(
+ ${WAYLAND_INCLUDE_DIR}
+)
+
+set(sources
+ session.c
+)
+
+set(libs
+ wlr-common
+ ${WAYLAND_LIBRARIES}
+)
+
+if (SYSTEMD_FOUND)
+ add_definitions(${SYSTEMD_DEFINITIONS})
+ include_directories(${SYSTEMD_INCLUDE_DIRS})
+
+ add_definitions(-DHAS_SYSTEMD)
+ list(APPEND sources logind.c)
+ list(APPEND libs ${SYSTEMD_LIBRARIES})
+endif ()
+
+add_library(wlr-session ${sources})
+target_link_libraries(wlr-session ${libs})