FindImageMagick¶
Find ImageMagick, software suite for displaying, converting and manipulating raster images.
Added in version 3.9: Added support for ImageMagick 7.
This module will search for a set of ImageMagick tools specified as
components in the find_package() call. Typical components include,
but are not limited to (future versions of ImageMagick might have
additional components not listed here):
animatecomparecompositeconjureconvertdisplayidentifyimportmogrifymontagestream
If no component is specified in the find_package() call, then it only
searches for the ImageMagick executable directory.
There are also components for the following ImageMagick APIs:
Magick++: ImageMagick C++ API, if found.MagickWand: ImageMagick MagickWand C API, if found.MagickCore: ImageMagick MagickCore low-level C API, if found.
Imported targets¶
Added in version 3.26.
This module defines the following IMPORTED targets:
ImageMagick::Magick++ImageMagick C++ API, if found.
ImageMagick::MagickWandImageMagick MagickWand C API, if found.
ImageMagick::MagickCoreImageMagick MagickCore low-level C API, if found.
Result Variables¶
ImageMagick_FOUNDTRUE if all components are found.
ImageMagick_EXECUTABLE_DIRFull path to executables directory.
ImageMagick_INCLUDE_DIRSFull paths to all include dirs.
ImageMagick_LIBRARIESFull paths to all libraries.
ImageMagick_COMPILE_OPTIONSCompile options of all libraries.
ImageMagick_VERSION_STRINGThe version of ImageMagick found (since CMake 2.8.8). Will not work for old versions like 5.2.3.
ImageMagick_<component>_FOUNDTRUE if <component> is found.
ImageMagick_<component>_EXECUTABLEFull path to <component> executable.
ImageMagick_<component>_INCLUDE_DIRSFull path to <component> include dirs.
ImageMagick_<component>_COMPILE_OPTIONSAdded in version 3.26.
Compile options of <component>.
ImageMagick_<component>_LIBRARIESAdded in version 3.31.
Full path to <component> libraries.
Example Usage¶
find_package(ImageMagick COMPONENTS Magick++)
target_link_libraries(example PRIVATE ImageMagick::Magick++)