KBFX – an alternative to T-Menu
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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #################################################
  2. #
  3. # (C) 2011 Timothy Pearson
  4. # kb9vqf (AT) pearsoncomputing.net
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. # required stuff
  12. tde_setup_architecture_flags( )
  13. include(TestBigEndian)
  14. test_big_endian(WORDS_BIGENDIAN)
  15. tde_setup_largefiles( )
  16. find_package( TQt )
  17. find_package( TDE )
  18. ##### check for gcc visibility support #########
  19. if( WITH_GCC_VISIBILITY )
  20. tde_setup_gcc_visibility( )
  21. endif( )
  22. check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY )
  23. check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
  24. check_include_file( stdint.h HAVE_STDINT_H )
  25. check_include_file( systems.h HAVE_SYSTEMS_H )
  26. check_include_file( linux/inotify.h HAVE_INOTIFY )
  27. check_function_exists( statvfs HAVE_STATVFS )
  28. #### Find strigi if needed #######################
  29. IF (USE_STRIGI)
  30. FIND_PACKAGE(Strigi REQUIRED)
  31. INCLUDE_DIRECTORIES(${STRIGI_INCLUDE_DIR})
  32. MESSAGE(STATUS "Strigi support is: ON!")
  33. ELSE (USE_STRIGI)
  34. MESSAGE(STATUS "Strigi support is: OFF!")
  35. ENDIF (USE_STRIGI)
  36. #### Find menudrake if needed #####################
  37. FIND_PROGRAM(HAVE_MANDRAKE menudrake)
  38. IF (HAVE_MANDRAKE AND USE_MENUDRAKE)
  39. SET(MANDRAKE "1")
  40. MESSAGE(STATUS "Will use 'menudrake' instead of 'kmenuedit'!")
  41. ELSE (HAVE_MANDRAKE AND USE_MENUDRAKE)
  42. SET(MANDRAKE "")
  43. MESSAGE(STATUS "Will use 'kmenuedit'!")
  44. ENDIF (HAVE_MANDRAKE AND USE_MENUDRAKE)