TDE web development programs
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.
 
 
 
 
 
 

52 lines
1.3 KiB

  1. #################################################
  2. #
  3. # (C) 2010 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. # libxml-2.0
  23. if( BUILD_QUANTA )
  24. pkg_search_module( LIBXML libxml-2.0 )
  25. if( LIBXML_FOUND )
  26. if( ${LIBXML_VERSION} VERSION_LESS "2.6" )
  27. tde_message_fatal( "libxml-2.0 version must be at least 2.6" )
  28. endif( )
  29. else( )
  30. tde_message_fatal( "libxml-2.0 are required, but not found on your system" )
  31. endif( )
  32. endif( )
  33. # libxslt
  34. if( BUILD_QUANTA )
  35. pkg_search_module( LIBXSLT libxslt )
  36. if( NOT LIBXSLT_FOUND )
  37. tde_message_fatal( "libxslt are required, but not found on your system" )
  38. endif( )
  39. endif( )
  40. # required stuff
  41. find_package( Qt )
  42. find_package( TQt )
  43. find_package( TDE )