summaryrefslogtreecommitdiffstats
path: root/Modules/FindImageMagick.cmake
diff options
context:
space:
mode:
authorLuis Ibanez <luis.ibanez@kitware.com>2002-12-03 19:15:51 (GMT)
committerLuis Ibanez <luis.ibanez@kitware.com>2002-12-03 19:15:51 (GMT)
commitc40401f05be76932efe87ef59672dd4bc8805c9d (patch)
treef2ac8dfb9a63713b5064c4bcdbb106b764438ed5 /Modules/FindImageMagick.cmake
parent37aed9f6c5799c7186610a3e40e4acc13d6ff115 (diff)
downloadCMake-c40401f05be76932efe87ef59672dd4bc8805c9d.zip
CMake-c40401f05be76932efe87ef59672dd4bc8805c9d.tar.gz
CMake-c40401f05be76932efe87ef59672dd4bc8805c9d.tar.bz2
Module to find tools from the ImageMagick package.
These tools are useful for converting image formats.
Diffstat (limited to 'Modules/FindImageMagick.cmake')
-rw-r--r--Modules/FindImageMagick.cmake34
1 files changed, 34 insertions, 0 deletions
diff --git a/Modules/FindImageMagick.cmake b/Modules/FindImageMagick.cmake
new file mode 100644
index 0000000..6837fad
--- /dev/null
+++ b/Modules/FindImageMagick.cmake
@@ -0,0 +1,34 @@
+#
+# This module finds if ImageMagick tools are installed and determines
+# where the executables are. This code sets the following variables:
+#
+# IMAGEMAGICK_CONVERT_EXECUTABLE = the full path to the 'convert' utility
+# IMAGEMAGICK_MOGRIFY_EXECUTABLE = the full path to the 'mogrify' utility
+# IMAGEMAGICK_IMPORT_EXECUTABLE = the full path to the 'import' utility
+# IMAGEMAGICK_MONTAGE_EXECUTABLE = the full path to the 'montage' utility
+# IMAGEMAGICK_COMPOSITE_EXECUTABLE = the full path to the 'composite' utility
+#
+
+FIND_PROGRAM(IMAGEMAGICK_CONVERT_EXECUTABLE
+ NAMES convert
+)
+
+FIND_PROGRAM(IMAGEMAGICK_MOGRIFY_EXECUTABLE
+ NAMES mogrify
+)
+
+FIND_PROGRAM(IMAGEMAGICK_IMPORT_EXECUTABLE
+ NAMES import
+)
+
+FIND_PROGRAM(IMAGEMAGICK_MONTAGE_EXECUTABLE
+ NAMES montage
+)
+
+FIND_PROGRAM(IMAGEMAGICK_COMPOSITE_EXECUTABLE
+ NAMES composite
+)
+
+
+
+