mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 08:32:30 +00:00
26 lines
456 B
CMake
26 lines
456 B
CMake
include_directories(
|
|
${WAYLAND_INCLUDE_DIR}
|
|
)
|
|
|
|
set(sources
|
|
session.c
|
|
direct.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})
|