KnowIt – tool for managing notes
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.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. ##### gettext
  24. if( BUILD_TRANSLATIONS )
  25. include( FindGettext )
  26. if( GETTEXT_FOUND )
  27. set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
  28. CACHE FILEPATH "path to msgfmt executable" )
  29. endif( GETTEXT_FOUND )
  30. if( NOT MSGFMT_EXECUTABLE )
  31. tde_message_fatal( "msgfmt is required but was not found on your system." )
  32. endif( NOT MSGFMT_EXECUTABLE )
  33. endif( BUILD_TRANSLATIONS )