KBiff – mail notification utility
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.8 KiB

  1. ###########################################
  2. # #
  3. # Improvements and feedback are welcome #
  4. # #
  5. # This file is released under GPL >= 3 #
  6. # #
  7. ###########################################
  8. # required stuff
  9. find_package( TQt )
  10. find_package( TDE )
  11. tde_setup_architecture_flags( )
  12. include(TestBigEndian)
  13. test_big_endian(WORDS_BIGENDIAN)
  14. ##### check for gcc visibility support
  15. if( WITH_GCC_VISIBILITY )
  16. if( NOT UNIX )
  17. tde_message_fatal( "gcc visibility support was requested, but your system is not *NIX" )
  18. endif( NOT UNIX )
  19. set( __KDE_HAVE_GCC_VISIBILITY 1 )
  20. set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
  21. set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
  22. endif( WITH_GCC_VISIBILITY )
  23. #### check for headers
  24. check_include_file( "sys/select.h" HAVE_SYS_SELECT_H )
  25. check_include_file( "paths.h" HAVE_PATHS_H )
  26. #### set USE_SSL
  27. if( WITH_SSL )
  28. # For SSL support is used KSSL in tdelibs.
  29. # Therefore, there is no need for a direct dependence on the SSL library.
  30. set( USE_SSL 1 )
  31. endif( WITH_SSL )
  32. #### check for ASUS Mail LED
  33. if( WITH_MLED )
  34. if( EXISTS "/proc/acpi/asus/mled" )
  35. set( HAVE_MLED 1 )
  36. else( )
  37. tde_mesage_fatal( "ASUS Mail LED support was requested but not found in ACPI" )
  38. endif( )
  39. endif( WITH_MLED )
  40. ##### gettext
  41. if( BUILD_TRANSLATIONS )
  42. include( FindGettext )
  43. if( GETTEXT_FOUND )
  44. set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
  45. CACHE FILEPATH "path to msgfmt executable" )
  46. endif( GETTEXT_FOUND )
  47. if( NOT MSGFMT_EXECUTABLE )
  48. tde_message_fatal( "msgfmt is required but was not found on your system." )
  49. endif( NOT MSGFMT_EXECUTABLE )
  50. endif( BUILD_TRANSLATIONS )