2017-05-03 04:11:22 +02:00
|
|
|
include_directories(
|
2017-07-03 04:46:20 +02:00
|
|
|
${WAYLAND_INCLUDE_DIR}
|
|
|
|
${DRM_INCLUDE_DIRS}
|
2017-05-03 04:11:22 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(sources
|
|
|
|
session.c
|
2017-05-03 09:26:43 +02:00
|
|
|
direct.c
|
2017-05-03 04:11:22 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(libs
|
2017-06-21 18:10:07 +02:00
|
|
|
wlr-util
|
2017-05-03 04:11:22 +02:00
|
|
|
${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 ()
|
|
|
|
|
2017-07-03 14:29:03 +02:00
|
|
|
if (Libcap_FOUND)
|
|
|
|
add_definitions(${Libcap_DEFINITIONS})
|
|
|
|
include_directories(${Libcap_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
add_definitions(-DHAS_LIBCAP)
|
|
|
|
list(APPEND libs ${Libcap_LIBRARIES})
|
|
|
|
endif ()
|
|
|
|
|
2017-05-03 04:11:22 +02:00
|
|
|
add_library(wlr-session ${sources})
|
|
|
|
target_link_libraries(wlr-session ${libs})
|