TDE graphics utilities
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.
 
 
 
 
 

60 lines
1.5 KiB

  1. #################################################
  2. #
  3. # (C) 2010-2011 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. # lcms
  12. check_include_file( lcms.h HAVE_LCMS_H )
  13. if( HAVE_LCMS_H )
  14. set( LCMS_HEADER "lcms.h" CACHE INTERNAL "" FORCE )
  15. endif( )
  16. if( LCMS_HEADER )
  17. check_library_exists( lcms VEC3init "" HAVE_LCMS )
  18. endif( )
  19. if( HAVE_LCMS )
  20. set( LCMS_LIBRARY lcms )
  21. else( )
  22. tde_message_fatal( "lcms is required, but was not found on your system" )
  23. endif( )
  24. # libart-2.0
  25. pkg_search_module( ART libart-2.0 )
  26. if( NOT ART_FOUND )
  27. tde_message_fatal( "libart-2.0 is required, but was not found on your system" )
  28. endif( )
  29. # freetype2 2.2.x
  30. if( NOT ${FREETYPE_VERSION} VERSION_LESS "2.2" )
  31. set( HAVE_FREETYPE_2_2_x 1 CACHE INTERNAL "" FORCE )
  32. endif( )
  33. # fribidi
  34. pkg_search_module( FRIBIDI fribidi )
  35. if( FRIBIDI_FOUND )
  36. tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${FRIBIDI_INCLUDE_DIRS} )
  37. check_include_file( fribidi/fribidi-types.h FRIBIDI_NEW_FILENAME )
  38. tde_restore( CMAKE_REQUIRED_INCLUDES )
  39. else( )
  40. tde_message_fatal( "fribidi is required, but was not found on your system" )
  41. endif( )
  42. ##### check for fontconfig ######################
  43. pkg_search_module( FONTCONFIG fontconfig )
  44. if( NOT FONTCONFIG_FOUND )
  45. message(FATAL_ERROR "\nfontconfig are required, but not found on your system" )
  46. endif( NOT FONTCONFIG_FOUND )
  47. set( HAVE_FONTCONFIG 1 CACHE INTERNAL "" FORCE )