QtCurve widget style for TDE
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.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE )
  23. find_program( MSGFMT_EXECUTABLE msgfmt )
  24. if( NOT MSGFMT_EXECUTABLE )
  25. tde_message_fatal( "msgfmt program is required, but was not found on your system" )
  26. endif( )
  27. endif( )
  28. check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY )
  29. check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
  30. check_include_file( stdint.h HAVE_STDINT_H )
  31. check_include_file( systems.h HAVE_SYSTEMS_H )
  32. check_include_file( linux/inotify.h HAVE_INOTIFY )
  33. check_function_exists( statvfs HAVE_STATVFS )
  34. # common required stuff
  35. find_package( TQt )
  36. find_package( TDE )