diff options
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/CMakeLists.txt | 51 |
1 files changed, 32 insertions, 19 deletions
diff --git a/swaybar/CMakeLists.txt b/swaybar/CMakeLists.txt index 12dd40c6..ea35134f 100644 --- a/swaybar/CMakeLists.txt +++ b/swaybar/CMakeLists.txt | |||
@@ -5,32 +5,45 @@ find_package(Cairo REQUIRED) | |||
5 | find_package(Pango REQUIRED) | 5 | find_package(Pango REQUIRED) |
6 | 6 | ||
7 | include(Wayland) | 7 | include(Wayland) |
8 | set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin/) | 8 | WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell |
9 | WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell "${PROJECT_SOURCE_DIR}/../protocols/xdg-shell.xml" xdg-shell) | 9 | ${PROJECT_SOURCE_DIR}/../protocols/xdg-shell.xml |
10 | WAYLAND_ADD_PROTOCOL_CLIENT(proto-desktop-shell "${PROJECT_SOURCE_DIR}/../protocols/desktop-shell.xml" desktop-shell) | 10 | xdg-shell |
11 | ) | ||
12 | WAYLAND_ADD_PROTOCOL_CLIENT(proto-desktop-shell | ||
13 | ${PROJECT_SOURCE_DIR}/../protocols/desktop-shell.xml | ||
14 | desktop-shell | ||
15 | ) | ||
11 | 16 | ||
12 | include_directories( | 17 | include_directories( |
13 | ${WAYLAND_CLIENT_INCLUDE_DIR} | 18 | ${WAYLAND_CLIENT_INCLUDE_DIR} |
14 | ${CAIRO_INCLUDE_DIRS} | 19 | ${CAIRO_INCLUDE_DIRS} |
15 | ${PANGO_INCLUDE_DIRS} | 20 | ${PANGO_INCLUDE_DIRS} |
16 | ${CMAKE_CURRENT_BINARY_DIR} | 21 | ${CMAKE_CURRENT_BINARY_DIR} |
17 | ) | 22 | ) |
18 | 23 | ||
19 | FILE(GLOB sources ${PROJECT_SOURCE_DIR}/*.c) | 24 | file(GLOB sources ${PROJECT_SOURCE_DIR}/*.c) |
20 | FILE(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c) | 25 | file(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c) |
21 | FILE(GLOB wl_sources ${PROJECT_SOURCE_DIR}/../wayland/*.c) | 26 | file(GLOB wl_sources ${PROJECT_SOURCE_DIR}/../wayland/*.c) |
22 | 27 | ||
23 | add_executable(swaybar | 28 | add_executable(swaybar |
24 | ${sources} | 29 | ${sources} |
25 | ${wl_sources} | 30 | ${wl_sources} |
26 | ${common} | 31 | ${common} |
27 | ${proto-xdg-shell} | 32 | ${proto-xdg-shell} |
28 | ${proto-desktop-shell} | 33 | ${proto-desktop-shell} |
29 | ) | 34 | ) |
30 | 35 | ||
31 | TARGET_LINK_LIBRARIES(swaybar ${WAYLAND_CLIENT_LIBRARIES} ${WAYLAND_CURSOR_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES} m) | 36 | target_link_libraries(swaybar |
37 | ${WAYLAND_CLIENT_LIBRARIES} | ||
38 | ${WAYLAND_CURSOR_LIBRARIES} | ||
39 | ${CAIRO_LIBRARIES} | ||
40 | ${PANGO_LIBRARIES} | ||
41 | m | ||
42 | ) | ||
32 | 43 | ||
33 | install( | 44 | install( |
34 | TARGETS swaybar | 45 | TARGETS swaybar |
35 | RUNTIME DESTINATION bin | 46 | RUNTIME |
36 | COMPONENT runtime) | 47 | DESTINATION bin |
48 | COMPONENT runtime | ||
49 | ) | ||