aboutsummaryrefslogtreecommitdiff
path: root/data/CMakeLists.txt
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-01 09:36:57 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-07-01 09:36:57 +0000
commit6ad9b8d2449c745953a1692b27e8d2b993a722d6 (patch)
treed0ce34b82460f52322d3bc9215fc7d989e642731 /data/CMakeLists.txt
parent6880613bbc6535242e95e7f5c65d9a9140eaa28b (diff)
parent194e79302027047ae36146f6ec4e7c0e9c1d2fc2 (diff)
downloadayatana-indicator-datetime-6ad9b8d2449c745953a1692b27e8d2b993a722d6.tar.gz
ayatana-indicator-datetime-6ad9b8d2449c745953a1692b27e8d2b993a722d6.tar.bz2
ayatana-indicator-datetime-6ad9b8d2449c745953a1692b27e8d2b993a722d6.zip
Expose the new alarm settings as DBus properties. Fixes: 1318997
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r--data/CMakeLists.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 5d9e545..d66c865 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -4,9 +4,15 @@
include (UseGSettings)
set (SCHEMA_NAME "com.canonical.indicator.datetime.gschema.xml")
-set (SCHEMA_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME}")
-add_schema (${SCHEMA_FILE})
+set (SCHEMA_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SCHEMA_NAME}")
+set (SCHEMA_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME}.in")
+
+# generate the .xml file using intltool
+set (ENV{LC_ALL} "C")
+execute_process (COMMAND intltool-merge -quiet --xml-style --utf8 --no-translations "${SCHEMA_FILE_IN}" "${SCHEMA_FILE}")
+# let UseGSettings do the rest
+add_schema (${SCHEMA_FILE})
##
## Upstart Job File