Subversion Repositories Scribus

Rev

Rev 15714 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13962 herm 1
# - Try to find GraphicsMagick++
2
# Once done, this will define
3
#
4
#  GMAGICK_FOUND - system has zziplib
5
#  GMAGICK_INCLUDE_DIRS - the zziplib include directories
6
#  GMAGICK_LIBRARIES - link these to use zziplib
7
 
8
include(FindPkgConfig)
9
 
10
# Use pkg-config to get hints about paths
11
pkg_check_modules(GMAGICK_PKGCONF GraphicsMagick++)
12
 
13
# Include dir
14
find_path(GMAGICK_INCLUDE_DIR
15
  NAMES Magick++.h
16
  PATHS ${GMAGICK_PKGCONF_INCLUDE_DIRS}
17
)
18
 
19
# Finally the library itself
20
find_library(GMAGICK_LIBRARY
21
  NAMES GraphicsMagick++
22
  PATHS ${GMAGICK_PKGCONF_LIBRARY_DIRS}
23
)
24
 
25
INCLUDE(FindPackageHandleStandardArgs)
26
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMAGICK DEFAULT_MSG GMAGICK_LIBRARY GMAGICK_INCLUDE_DIR)
27
IF(GMAGICK_FOUND)
28
    set(GMAGICK_INCLUDES ${GMAGICK_INCLUDE_DIR})
29
    set(GMAGICK_LIBRARIES ${GMAGICK_LIBRARY})
30
ELSE()
31
    set(GMAGICK_INCLUDES)
32
    set(GMAGICK_LIBRARIES)
33
ENDIF()