You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegraphics/ksvg/ConfigureChecks.cmake

58 lines
1.4 KiB

#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# lcms
check_include_file( lcms.h HAVE_LCMS_H )
if( HAVE_LCMS_H )
set( LCMS_HEADER "lcms.h" CACHE INTERNAL "" FORCE )
endif( )
if( LCMS_HEADER )
check_library_exists( lcms VEC3init "" HAVE_LCMS )
endif( )
if( HAVE_LCMS )
set( LCMS_LIBRARY lcms )
else( )
tde_message_fatal( "lcms is required, but was not found on your system" )
endif( )
# libart-2.0
pkg_search_module( ART libart-2.0 )
if( NOT ART_FOUND )
tde_message_fatal( "libart-2.0 is required, but was not found on your system" )
endif( )
# freetype2 2.2.x
if( NOT ${FREETYPE_VERSION} VERSION_LESS "2.2" )
set( HAVE_FREETYPE_2_2_x 1 CACHE INTERNAL "" FORCE )
endif( )
# fribidi
pkg_search_module( FRIBIDI fribidi )
if( FRIBIDI_FOUND )
check_include_file( fribidi/fribidi-types.h FRIBIDI_NEW_FILENAME )
else( )
tde_message_fatal( "fribidi is required, but was not found on your system" )
endif( )
##### check for fontconfig ######################
pkg_search_module( FONTCONFIG fontconfig )
if( NOT FONTCONFIG_FOUND )
message(FATAL_ERROR "\nfontconfig are required, but not found on your system" )
endif( NOT FONTCONFIG_FOUND )
set( HAVE_FONTCONFIG 1 CACHE INTERNAL "" FORCE )