diff options
Diffstat (limited to 'swaybg/CMakeLists.txt')
-rw-r--r-- | swaybg/CMakeLists.txt | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/swaybg/CMakeLists.txt b/swaybg/CMakeLists.txt index 6a6c3efa..ae376419 100644 --- a/swaybg/CMakeLists.txt +++ b/swaybg/CMakeLists.txt | |||
@@ -6,8 +6,14 @@ find_package(Pango REQUIRED) | |||
6 | 6 | ||
7 | include(Wayland) | 7 | include(Wayland) |
8 | set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin/) | 8 | set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin/) |
9 | WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell "${PROJECT_SOURCE_DIR}/../protocols/xdg-shell.xml" xdg-shell) | 9 | WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell |
10 | WAYLAND_ADD_PROTOCOL_CLIENT(proto-desktop-shell "${PROJECT_SOURCE_DIR}/../protocols/desktop-shell.xml" desktop-shell) | 10 | "${PROJECT_SOURCE_DIR}/../protocols/xdg-shell.xml" |
11 | xdg-shell | ||
12 | ) | ||
13 | WAYLAND_ADD_PROTOCOL_CLIENT(proto-desktop-shell | ||
14 | "${PROJECT_SOURCE_DIR}/../protocols/desktop-shell.xml" | ||
15 | desktop-shell | ||
16 | ) | ||
11 | 17 | ||
12 | include_directories( | 18 | include_directories( |
13 | ${WAYLAND_CLIENT_INCLUDE_DIR} | 19 | ${WAYLAND_CLIENT_INCLUDE_DIR} |
@@ -28,9 +34,17 @@ add_executable(swaybg | |||
28 | ${proto-desktop-shell} | 34 | ${proto-desktop-shell} |
29 | ) | 35 | ) |
30 | 36 | ||
31 | target_link_libraries(swaybg ${WAYLAND_CLIENT_LIBRARIES} ${WAYLAND_CURSOR_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES} m) | 37 | target_link_libraries(swaybg |
38 | ${WAYLAND_CLIENT_LIBRARIES} | ||
39 | ${WAYLAND_CURSOR_LIBRARIES} | ||
40 | ${CAIRO_LIBRARIES} | ||
41 | ${PANGO_LIBRARIES} | ||
42 | m | ||
43 | ) | ||
32 | 44 | ||
33 | install( | 45 | install( |
34 | TARGETS swaybg | 46 | TARGETS swaybg |
35 | RUNTIME DESTINATION bin | 47 | RUNTIME |
36 | COMPONENT runtime) | 48 | DESTINATION bin |
49 | COMPONENT runtime | ||
50 | ) | ||