You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
443 B
25 lines
443 B
8 years ago
|
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})
|