summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2015-11-12 21:42:37 -0500
committerBen Boeckel <mathstuf@gmail.com>2015-11-12 21:56:14 -0500
commit0db562ccc082550fcc92c0650dfc47891ea770be (patch)
tree501ded94c0dd8c231378a438141b881bb4d31779
parentf9eccc4d2680148b60dd17e183cc723f3ea1fe6a (diff)
downloadswaybg-0db562ccc082550fcc92c0650dfc47891ea770be.tar.gz
swaybg-0db562ccc082550fcc92c0650dfc47891ea770be.tar.bz2
common: create a static library
-rw-r--r--CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e86cf65..1ad4332 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,6 @@ include(Wayland)
WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell "xdg-shell.xml" xdg-shell)
include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}/../include
${WAYLAND_CLIENT_INCLUDE_DIR}
${CAIRO_INCLUDE_DIRS}
${PANGO_INCLUDE_DIRS}
@@ -16,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}
@@ -24,7 +22,7 @@ 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