aboutsummaryrefslogtreecommitdiff
path: root/libdino/CMakeLists.txt
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-12 14:42:04 +0100
committerMarvin W <git@larma.de>2017-03-12 14:42:04 +0100
commitdbbe5e39d069196aa17951b12575492cfa8c7976 (patch)
treeba48c4d0204604f689acb97e281dc47d360a6ebf /libdino/CMakeLists.txt
parente8f11178ecc1a333976ba713f532fcae11931b16 (diff)
downloaddino-dbbe5e39d069196aa17951b12575492cfa8c7976.tar.gz
dino-dbbe5e39d069196aa17951b12575492cfa8c7976.zip
Automatically compile and use gsettings schema
Diffstat (limited to 'libdino/CMakeLists.txt')
-rw-r--r--libdino/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/libdino/CMakeLists.txt b/libdino/CMakeLists.txt
index 08bf88d6..a2b47381 100644
--- a/libdino/CMakeLists.txt
+++ b/libdino/CMakeLists.txt
@@ -72,3 +72,15 @@ add_custom_target(dino-vapi
DEPENDS
${CMAKE_BINARY_DIR}/exports/dino.vapi
)
+
+add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/gschemas.compiled
+COMMAND
+ glib-compile-schemas --targetdir=${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/data
+DEPENDS
+ ${CMAKE_CURRENT_SOURCE_DIR}/data/dino.gschema.xml
+)
+
+add_custom_target(dino-gsettings-schema-compiled
+DEPENDS
+ ${CMAKE_BINARY_DIR}/gschemas.compiled
+) \ No newline at end of file