summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-07-26 17:49:55 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-07-26 17:49:55 +0800
commit22472ece28d8a1a5b463359911a61758c54ddbcd (patch)
treeb17721bcc7e7471ff47c8e4aa9d8cf658e11d35a /CMakeLists.txt
parent4f02cdfbf265fbca4c38482f913abd90b2b4e72f (diff)
parent330c8dff0ff9bde3f4f3819a2cfedc69af982d78 (diff)
downloadcompizconfig-backend-gsettings-22472ece28d8a1a5b463359911a61758c54ddbcd.tar.gz
compizconfig-backend-gsettings-22472ece28d8a1a5b463359911a61758c54ddbcd.tar.bz2
Merge in gsettings port
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")