mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
New session interface.
This commit is contained in:
parent
e446a5300b
commit
762ac7f4c0
6 changed files with 316 additions and 2 deletions
24
session/CMakeLists.txt
Normal file
24
session/CMakeLists.txt
Normal file
|
|
@ -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})
|
||||
Loading…
Add table
Add a link
Reference in a new issue