Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 13961 → Rev 13962

/trunk/Scribus/cmake/modules/GMAGICKConfig.cmake
File deleted
/trunk/Scribus/cmake/modules/FindGMAGICK.cmake
0,0 → 1,33
# - Try to find GraphicsMagick++
# Once done, this will define
#
# GMAGICK_FOUND - system has zziplib
# GMAGICK_INCLUDE_DIRS - the zziplib include directories
# GMAGICK_LIBRARIES - link these to use zziplib
 
include(FindPkgConfig)
 
# Use pkg-config to get hints about paths
pkg_check_modules(GMAGICK_PKGCONF GraphicsMagick++)
 
# Include dir
find_path(GMAGICK_INCLUDE_DIR
NAMES Magick++.h
PATHS ${GMAGICK_PKGCONF_INCLUDE_DIRS}
)
 
# Finally the library itself
find_library(GMAGICK_LIBRARY
NAMES GraphicsMagick++
PATHS ${GMAGICK_PKGCONF_LIBRARY_DIRS}
)
 
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GMAGICK DEFAULT_MSG GMAGICK_LIBRARY GMAGICK_INCLUDE_DIR)
IF(GMAGICK_FOUND)
set(GMAGICK_INCLUDES ${GMAGICK_INCLUDE_DIR})
set(GMAGICK_LIBRARIES ${GMAGICK_LIBRARY})
ELSE()
set(GMAGICK_INCLUDES)
set(GMAGICK_LIBRARIES)
ENDIF()
/trunk/Scribus/scribus/CMakeLists.txt
37,6 → 37,13
pageitem_osgframe.cpp
)
ENDIF (HAVE_OSG)
 
IF (GMAGICK_FOUND)
SET(SCRIBUS_GMAGICK_SRC scimgdataloader_gmagick.cpp)
ELSE(GMAGICK_FOUND)
SET(SCRIBUS_GMAGICK_SRC)
ENDIF(GMAGICK_FOUND)
 
# We setup something like a group to gather setter related stuff
# because it could expand into a huge amount of file at some point.
SET(SCRIBUS_ITEMSETTERS_UI_SRC
631,7 → 638,6
scimagestructs.cpp
scimgdataloader.cpp
scimgdataloader_gimp.cpp
scimgdataloader_gmagick.cpp
scimgdataloader_jpeg.cpp
scimgdataloader_pdf.cpp
scimgdataloader_ps.cpp
765,6 → 771,7
ui/vruler.cpp
${SCRIBUS_ITEMSETTERS_SRC}
${SCRIBUS_OSG_SRC}
${SCRIBUS_GMAGICK_SRC}
)
 
IF(WIN32)
811,14 → 818,17
${CMAKE_CURRENT_SOURCE_DIR}
${FREETYPE_INCLUDE_DIRS}
)
INCLUDE_DIRECTORIES(
BEFORE ${GMAGICK_INCLUDES}
)
MESSAGE(STATUS "${GMAGICK_LIBRARIES}, ${GMAGICK_INCLUDES}, ${GMAGICK_LDFLAGS}")
LINK_DIRECTORIES(
${GMAGICK_LDFLAGS}
)
 
IF (GMAGICK_FOUND)
MESSAGE(STATUS "GMAGICK: Libs: ${GMAGICK_LIBRARIES}, Inc: ${GMAGICK_INCLUDES}, Ldflags: ${GMAGICK_LDFLAGS}")
INCLUDE_DIRECTORIES(
BEFORE ${GMAGICK_INCLUDES}
)
LINK_DIRECTORIES(
${GMAGICK_LDFLAGS} #TODO
)
ENDIF(GMAGICK_FOUND)
 
IF(HAVE_PODOFO)
INCLUDE_DIRECTORIES(
${LIBPODOFO_INCLUDE_DIR}
/trunk/Scribus/CMakeLists.txt
653,13 → 653,15
ENDIF(LIBPODOFO_FOUND)
#>>PoDoFo for AI PDF import
 
#<<GraphicksMagick++ for image import
SET(GMAGICK_DIR ${CMAKE_MODULE_PATH})
FIND_PACKAGE(GMAGICK)
IF(GMAGICK_FOUND)
MESSAGE("GraphicksMagick++ Library Found OK")
MESSAGE("GraphicksMagick++ Found OK")
ELSE(GMAGICK_FOUND)
MESSAGE("GraphicksMagick++ Library NOT found! Building without additional image format support!")
MESSAGE("GraphicksMagick++ NOT found! Building without additional image format support!")
ENDIF(GMAGICK_FOUND)
#>>GraphicksMagick++ for image import
 
##############################################################################################################
########## Include Setup ##########