aboutsummaryrefslogtreecommitdiff
path: root/session/CMakeLists.txt
blob: bd83068b1a2bdc543940b9ba2548a5ebb279221d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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})