summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: f372d38f5176521992af1854e7c11716e2e1b697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
project (compizconfig-backend-gsettings)

find_package (CompizConfig REQUIRED)

include (LibCompizConfigCommon)
include (CompizGSettings)

set (_deps glib-2.0>=2.20.0
	  gio-2.0>=2.25.0)

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 GSettings Storage Backend")