swh:1:snp:c7c108084bc0bf3d81436bf980b46e98bd338453
Tip revision: 7b0b3e1a5a100a7a65551d57527d9140c5e4cb0e authored by johannes hanika on 23 December 2013, 16:25:22 UTC
Revert "release: remove stale translations and update release notes."
Revert "release: remove stale translations and update release notes."
Tip revision: 7b0b3e1
FindGraphicsMagick.cmake
#
# Find the GraphicsMagick includes and library
#
# This module defines
# GraphicsMagick_INCLUDE_DIR, where to find *.h etc
# GraphicsMagick_LIBRARY, the libraries
# GraphicsMagick_FOUND, If false, do not try to use LCMS.
include(LibFindMacros)
# Use pkg-config to get hints about paths
libfind_pkg_check_modules(GraphicsMagick_PKGCONF GraphicsMagick)
# Include dir
find_path(GraphicsMagick_INCLUDE_DIR
NAMES magick/api.h
HINTS ${GraphicsMagick_PKGCONF_INCLUDE_DIRS}
PATH_SUFFIXES GraphicsMagick
)
# Finally the library itself
find_library(GraphicsMagick_LIBRARY
NAMES GraphicsMagick
HINTS ${GraphicsMagick_PKGCONF_LIBRARY_DIRS}
)
# Set the include dir variables and the libraries and let libfind_process do the rest.
# NOTE: Singular variables for this library, plural for libraries this lib depends on.
set(GraphicsMagick_PROCESS_INCLUDES ${GraphicsMagick_INCLUDE_DIR})
set(GraphicsMagick_PROCESS_LIBS ${GraphicsMagick_LIBRARY})
libfind_process(GraphicsMagick)
if(GraphicsMagick_FOUND)
set(GraphicsMagick_INCLUDE_DIRS ${GraphicsMagick_INCLUDE_DIR})
set(GraphicsMagick_LIBRARIES ${GraphicsMagick_LIBRARY})
endif(GraphicsMagick_FOUND)