diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-01 15:25:41 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-01 15:25:41 -0500 |
commit | 1fbabc6c747205e62cd1dff3771bd319a935438f (patch) | |
tree | 8c079c9fe0f909be8429ab010ed75853bd3429d0 /swaybg | |
parent | Merge pull request #286 from mikkeloscar/wlc-origin-point (diff) | |
parent | cmake: remove unnecessary quotes (diff) | |
download | sway-1fbabc6c747205e62cd1dff3771bd319a935438f.tar.gz sway-1fbabc6c747205e62cd1dff3771bd319a935438f.tar.zst sway-1fbabc6c747205e62cd1dff3771bd319a935438f.zip |
Merge pull request #285 from christophgysin/cmake
cmake configuration cleanup
Diffstat (limited to 'swaybg')
-rw-r--r-- | swaybg/CMakeLists.txt | 51 |
1 files changed, 32 insertions, 19 deletions
diff --git a/swaybg/CMakeLists.txt b/swaybg/CMakeLists.txt index d4de69de..8016d959 100644 --- a/swaybg/CMakeLists.txt +++ b/swaybg/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(swaybg | 28 | add_executable(swaybg |
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(swaybg ${WAYLAND_CLIENT_LIBRARIES} ${WAYLAND_CURSOR_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES} m) | 36 | target_link_libraries(swaybg |
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 swaybg | 45 | TARGETS swaybg |
35 | RUNTIME DESTINATION bin | 46 | RUNTIME |
36 | COMPONENT runtime) | 47 | DESTINATION bin |
48 | COMPONENT runtime | ||
49 | ) | ||