summaryrefslogtreecommitdiffstats
path: root/cmake/macros/GlibCompileResourcesSupport.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/macros/GlibCompileResourcesSupport.cmake')
-rw-r--r--cmake/macros/GlibCompileResourcesSupport.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/macros/GlibCompileResourcesSupport.cmake b/cmake/macros/GlibCompileResourcesSupport.cmake
new file mode 100644
index 0000000..2950af3
--- /dev/null
+++ b/cmake/macros/GlibCompileResourcesSupport.cmake
@@ -0,0 +1,11 @@
+# Path to this file.
+set(GCR_CMAKE_MACRO_DIR ${CMAKE_CURRENT_LIST_DIR})
+
+# Finds the glib-compile-resources executable.
+find_program(GLIB_COMPILE_RESOURCES_EXECUTABLE glib-compile-resources)
+mark_as_advanced(GLIB_COMPILE_RESOURCES_EXECUTABLE)
+
+# Include the cmake files containing the functions.
+include(${GCR_CMAKE_MACRO_DIR}/CompileGResources.cmake)
+include(${GCR_CMAKE_MACRO_DIR}/GenerateGXML.cmake)
+