KPowersave – HAL based power management applet
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ConfigureChecks.cmake 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. # required stuff
  12. find_package( TQt )
  13. find_package( TDE )
  14. tde_setup_architecture_flags( )
  15. include(TestBigEndian)
  16. test_big_endian(WORDS_BIGENDIAN)
  17. tde_setup_largefiles( )
  18. ##### check for gcc visibility support #########
  19. if( WITH_GCC_VISIBILITY )
  20. tde_setup_gcc_visibility( )
  21. endif( )
  22. # check for hal
  23. pkg_search_module( HAL hal )
  24. if( HAL_FOUND )
  25. if( ${HAL_VERSION} VERSION_LESS "0.5.10" )
  26. tde_message_fatal( "your hal version is too old; at least 0.5.10 is required" )
  27. else( )
  28. set( HAVE_HAL_0_5_10 1 )
  29. endif( )
  30. else( )
  31. tde_message_fatal( "hal are requested, but not found on your system" )
  32. endif( )
  33. # check for Xext
  34. pkg_search_module( XEXT xext )
  35. if( NOT XEXT_FOUND )
  36. tde_message_fatal( "Xext are required, but not found on your system" )
  37. endif()
  38. # check for Xtst
  39. pkg_search_module( XTST xtst )
  40. if( NOT XTST_FOUND )
  41. tde_message_fatal( "Xtst are required, but not found on your system" )
  42. endif()
  43. # check for xscrnsaver
  44. pkg_search_module( XSCRNSAVER xscrnsaver )
  45. if( NOT XSCRNSAVER_FOUND )
  46. tde_message_fatal( "xscrnsaver are required, but not found on your system" )
  47. endif()
  48. # check for dbus-1
  49. pkg_search_module( DBUS dbus-1 )
  50. if( NOT DBUS_FOUND )
  51. tde_message_fatal( "dbus-1 is required, but was not found on your system" )
  52. endif( )
  53. # check for dbus-tqt
  54. pkg_search_module( DBUS_TQT dbus-tqt )
  55. if( NOT DBUS_TQT_FOUND )
  56. tde_message_fatal( "dbus-tqt is required, but was not found on your system" )
  57. endif( )