aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-01-08 18:49:42 -0500
committerDrew DeVault <sir@cmpwn.com>2016-01-08 18:49:42 -0500
commitb4ea9d492cf6b7c4cd871cfc4da98547596acd63 (patch)
tree995a49d74f5db909a24dd7096c6ed9786d0cdad7
parentcb8ac7fd4a0c8c11f97cc913391c4d04a7b4277b (diff)
downloadsway-b4ea9d492cf6b7c4cd871cfc4da98547596acd63.tar.xz
Make wallpaper optional (cmake flag)
-rw-r--r--CMakeLists.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 447fd584..2924c3e4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,6 +45,7 @@ option(enable-swaygrab "Enables the swaygrab utility" YES)
option(enable-swaymsg "Enables the swaymsg utility" YES)
option(enable-gdk-pixbuf "Use Pixbuf to support more image formats" YES)
option(enable-binding-event "Enables binding event subscription" YES)
+option(default-wallpaper "Installs the default wallpaper" YES)
find_package(JsonC REQUIRED)
find_package(PCRE REQUIRED)
@@ -123,10 +124,12 @@ install(
COMPONENT data
)
-install(
- FILES ${CMAKE_CURRENT_SOURCE_DIR}/wallpaper.jpg
- DESTINATION share/sway
- COMPONENT data
- )
+if(default-wallpaper)
+ install(
+ FILES ${CMAKE_CURRENT_SOURCE_DIR}/wallpaper.jpg
+ DESTINATION share/sway
+ COMPONENT data
+ )
+endif()
feature_summary(WHAT ALL)