TDE frontend for power management
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.

72 lines
1.9KB

  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. # check for Xext
  23. pkg_search_module( XEXT xext )
  24. if( NOT XEXT_FOUND )
  25. tde_message_fatal( "Xext are required, but not found on your system" )
  26. endif()
  27. # check for Xtst
  28. pkg_search_module( XTST xtst )
  29. if( NOT XTST_FOUND )
  30. tde_message_fatal( "Xtst are required, but not found on your system" )
  31. endif()
  32. # check for xscrnsaver
  33. pkg_search_module( XSCRNSAVER xscrnsaver )
  34. if( NOT XSCRNSAVER_FOUND )
  35. tde_message_fatal( "xscrnsaver are required, but not found on your system" )
  36. endif()
  37. # check for dbus-1
  38. pkg_search_module( DBUS dbus-1 )
  39. if( NOT DBUS_FOUND )
  40. tde_message_fatal( "dbus-1 is required, but was not found on your system" )
  41. endif( )
  42. # check for dbus-1-tqt
  43. pkg_search_module( DBUS_TQT dbus-1-tqt )
  44. if( NOT DBUS_TQT_FOUND )
  45. tde_message_fatal( "dbus-1-tqt is required, but was not found on your system" )
  46. endif( )
  47. # check for msgfmt
  48. if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE )
  49. find_program( MSGFMT_EXECUTABLE msgfmt )
  50. if( NOT MSGFMT_EXECUTABLE )
  51. tde_message_fatal( "msgfmt program is required, but was not found on your system" )
  52. endif( )
  53. endif( )
  54. # required stuff
  55. find_package( TQt )
  56. find_package( TDE )