mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 15:12:26 +00:00
b08aa9fd35
This reverts commit85805da021
, reversing changes made to8189c64d7f
.
36 lines
694 B
CMake
36 lines
694 B
CMake
include_directories(
|
|
${WAYLAND_INCLUDE_DIR}
|
|
${DRM_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(sources
|
|
session.c
|
|
direct.c
|
|
direct-ipc.c
|
|
)
|
|
|
|
set(libs
|
|
wlr-util
|
|
${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 ()
|
|
|
|
if (Libcap_FOUND)
|
|
add_definitions(${Libcap_DEFINITIONS})
|
|
include_directories(${Libcap_INCLUDE_DIRS})
|
|
|
|
add_definitions(-DHAS_LIBCAP)
|
|
list(APPEND libs ${Libcap_LIBRARIES})
|
|
endif ()
|
|
|
|
add_library(wlr-session ${sources})
|
|
target_link_libraries(wlr-session ${libs})
|