wlroots/session/CMakeLists.txt

29 lines
532 B
CMake
Raw Normal View History

2017-05-03 02:11:22 +00:00
include_directories(
2017-07-03 02:46:20 +00:00
${WAYLAND_INCLUDE_DIR}
${DRM_INCLUDE_DIRS}
${Libcap_INCLUDE_DIRS}
2017-05-03 02:11:22 +00:00
)
set(sources
session.c
2017-05-03 07:26:43 +00:00
direct.c
2017-05-03 02:11:22 +00:00
)
set(libs
2017-06-21 16:10:07 +00:00
wlr-util
2017-05-03 02:11:22 +00:00
${WAYLAND_LIBRARIES}
2017-07-03 02:46:20 +00:00
${Libcap_LIBRARIES}
2017-05-03 02:11:22 +00:00
)
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})