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.

ConfigureChecks.cmake 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. ##### check for gcc visibility support #########
  12. # FIXME
  13. # This should check for [T]Qt3 visibility support
  14. if( WITH_GCC_VISIBILITY )
  15. if( NOT UNIX )
  16. tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
  17. endif( NOT UNIX )
  18. set( __KDE_HAVE_GCC_VISIBILITY 1 )
  19. set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
  20. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
  21. endif( )
  22. tde_setup_architecture_flags( )
  23. # freetype2
  24. if( BUILD_KDVI OR BUILD_KPDF OR BUILD_KSVG )
  25. pkg_search_module( FREETYPE freetype2 )
  26. if( FREETYPE_FOUND )
  27. set( HAVE_FREETYPE 1 )
  28. else( )
  29. tde_message_fatal( "freetype2 is required, but was not found on your system" )
  30. endif( )
  31. endif( )
  32. # required stuff
  33. find_package( TQt )
  34. find_package( TDE )