AbaKus – a complex calculator
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.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. 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 )