aboutsummaryrefslogtreecommitdiff
path: root/swaybg
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-11-12 22:20:44 -0500
committerDrew DeVault <sir@cmpwn.com>2015-11-12 22:20:44 -0500
commit44d0b3282f91cf1f01a9c79ad0e2b64f1a11e845 (patch)
treea7797ce637c450643a773d6cb415b7a617d11891 /swaybg
parentc43ef2aedd0b2be3236e3e9feced447b956e496c (diff)
parent8e8bdbcae21a0db730d48fc39aa780e37729412c (diff)
downloadsway-44d0b3282f91cf1f01a9c79ad0e2b64f1a11e845.tar.xz
Merge pull request #224 from mathstuf/cmake-cleanups
CMake cleanups
Diffstat (limited to 'swaybg')
-rw-r--r--swaybg/CMakeLists.txt13
1 files changed, 5 insertions, 8 deletions
diff --git a/swaybg/CMakeLists.txt b/swaybg/CMakeLists.txt
index 9351441a..1ad43324 100644
--- a/swaybg/CMakeLists.txt
+++ b/swaybg/CMakeLists.txt
@@ -7,9 +7,7 @@ find_package(Pango REQUIRED)
include(Wayland)
WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell "xdg-shell.xml" xdg-shell)
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "../bin/")
include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}/../include
${WAYLAND_CLIENT_INCLUDE_DIR}
${CAIRO_INCLUDE_DIRS}
${PANGO_INCLUDE_DIRS}
@@ -17,7 +15,6 @@ include_directories(
FILE(GLOB sources ${PROJECT_SOURCE_DIR}/*.c)
FILE(GLOB wl_sources ${PROJECT_SOURCE_DIR}/../wayland/*.c)
-FILE(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c)
add_executable(swaybg
${sources}
@@ -25,9 +22,9 @@ add_executable(swaybg
${common}
)
-TARGET_LINK_LIBRARIES(swaybg ${WAYLAND_CLIENT_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES})
+TARGET_LINK_LIBRARIES(swaybg ${WAYLAND_CLIENT_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES} sway_common)
-INSTALL(
- TARGETS swaybg
- RUNTIME DESTINATION bin
-)
+install(
+ TARGETS swaybg
+ RUNTIME DESTINATION bin
+ COMPONENT runtime)