aboutsummaryrefslogtreecommitdiff
path: root/example/CMakeLists.txt
blob: 100e110ae0192245e581c0d165fe121b456e123f (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
include_directories(
	${DRM_INCLUDE_DIRS}
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${XKBCOMMON_INCLUDE_DIRS}
)

add_executable(simple
    simple.c
    shared.c
)

target_link_libraries(simple
    wlr-backend
    wlr-session
    ${XKBCOMMON_LIBRARIES}
)

add_executable(rotation
    rotation.c
    shared.c
    cat.c
)

target_link_libraries(rotation
    wlr-backend
    wlr-session
    wlr-render
    ${XKBCOMMON_LIBRARIES}
)

add_executable(pointer
    pointer.c
    shared.c
    cat.c
)

target_link_libraries(pointer
    wlr-backend
    wlr-session
    wlr-render
    ${XKBCOMMON_LIBRARIES}
)

add_executable(touch
    touch.c
    shared.c
    cat.c
)

target_link_libraries(touch
    wlr-backend
    wlr-session
    wlr-render
    ${XKBCOMMON_LIBRARIES}
)

add_executable(tablet
    tablet.c
    shared.c
)

target_link_libraries(tablet
    wlr-backend
    wlr-session
    wlr-render
    ${XKBCOMMON_LIBRARIES}
)

add_executable(compositor
    compositor
    shared.c
)

target_link_libraries(compositor
    wlr-backend
    wlr-session
    wlr-render
    wlr-wayland
    ${XKBCOMMON_LIBRARIES}
)