summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt23
1 files changed, 19 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index caee4b8..f372d38 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,11 +1,26 @@
-project (compizconfig-backend-gconf)
+project (compizconfig-backend-gsettings)
find_package (CompizConfig REQUIRED)
include (LibCompizConfigCommon)
+include (CompizGSettings)
-compizconfig_backend (gconf PKGDEPS glib-2.0 gconf-2.0)
+set (_deps glib-2.0>=2.20.0
+ gio-2.0>=2.25.0)
-compiz_print_configure_header ("CompizConfig GConf Storage Backend")
+option (USE_GCONF "Enable legacy GNOME 2.x option integration with GConf" ON)
+
+if (USE_GCONF)
+ list (APPEND _deps gconf-2.0>=2.31.1)
+
+ add_definitions (-DUSE_GCONF)
+endif (USE_GCONF)
+
+compizconfig_backend (gsettings PKGDEPS ${_deps})
+
+compiz_install_gsettings_schema (${CMAKE_SOURCE_DIR}/org.freedesktop.compizconfig.gschema.xml
+ ${CMAKE_INSTALL_PREFIX}/share/glib-2.0/schemas)
+
+compiz_print_configure_header ("CompizConfig GSettings Storage Backend")
compiz_print_configure_footer ()
-compiz_package_generation ("CompizConfig GConf Storage Backend")
+compiz_package_generation ("CompizConfig GSettings Storage Backend")