summaryrefslogtreecommitdiff
path: root/metadata
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-10-06 15:58:52 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-10-06 19:11:30 +0200
commitf235e2a766f344f426c6054b7e69a42b41c79e3b (patch)
treeda94e0502965cc7cf1a8d3c9f9eca543a682f742 /metadata
parent92765a6911bc9b442bc670fd6e2370454814a34d (diff)
downloadzcomp-f235e2a766f344f426c6054b7e69a42b41c79e3b.tar.gz
zcomp-f235e2a766f344f426c6054b7e69a42b41c79e3b.tar.bz2
Initial version of CMake build system.
Diffstat (limited to 'metadata')
-rw-r--r--metadata/CMakeLists.txt71
1 files changed, 71 insertions, 0 deletions
diff --git a/metadata/CMakeLists.txt b/metadata/CMakeLists.txt
new file mode 100644
index 0000000..1cd7d0d
--- /dev/null
+++ b/metadata/CMakeLists.txt
@@ -0,0 +1,71 @@
+set (_plugin_files
+ core
+ annotate
+ blur
+ clone
+ cube
+ dbus
+ decor
+ fade
+ fs
+ gconf
+ glib
+ ini
+ inotify
+ kconfig
+ minimize
+ move
+ place
+ png
+ regex
+ resize
+ rotate
+ scale
+ screenshot
+ svg
+ switcher
+ video
+ water
+ wobbly
+ zoom
+ composite
+ opengl
+ copytex
+)
+
+set (_xml_targets)
+set (_schema_targets)
+
+foreach (_plugin ${_plugin_files})
+
+ translate_xml (
+ ${CMAKE_CURRENT_SOURCE_DIR}/${_plugin}.xml.in
+ ${CMAKE_CURRENT_BINARY_DIR}/${_plugin}.xml
+ )
+
+ install (
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${_plugin}.xml
+ DESTINATION ${compiz_metadatadir}
+ )
+
+ if (USE_GCONF)
+ generate_gconf_schema (
+ ${CMAKE_CURRENT_BINARY_DIR}/${_plugin}.xml
+ ${CMAKE_CURRENT_BINARY_DIR}/compiz-${_plugin}.schemas
+ )
+ install_gconf_schema (${CMAKE_CURRENT_BINARY_DIR}/compiz-${_plugin}.schemas)
+ set (_schema_targets ${_schema_targets} ${CMAKE_CURRENT_BINARY_DIR}/compiz-${_plugin}.schemas)
+ endif (USE_GCONF)
+
+ set (_xml_targets ${_xml_targets} ${CMAKE_CURRENT_BINARY_DIR}/${_plugin}.xml)
+endforeach (_plugin)
+
+add_custom_target (xml-files ALL
+ DEPENDS ${_xml_targets}
+)
+
+if (USE_GCONF)
+ add_custom_target (gconf-schemas ALL
+ DEPENDS ${_schema_targets}
+ )
+endif (USE_GCONF) \ No newline at end of file