###########################################
#                                         #
#  Improvements and feedback are welcome  #
#                                         #
#  This file is released under GPL >= 3   #
#                                         #
###########################################


# required stuff
find_package( TQt )
find_package( TDE )

tde_setup_architecture_flags( )

include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)

tde_setup_largefiles( )


##### check for gcc visibility support #########

if( WITH_GCC_VISIBILITY )
  tde_setup_gcc_visibility( )
endif( )


#### check for functions

find_library( LIBGCRYPT_LIBRARIES gcrypt )
if( LIBGCRYPT_LIBRARIES )
  message( STATUS "Found libgcrypt: ${LIBGCRYPT_LIBRARIES}" )
  set( ADDITIONAL_LIBS ${ADDITIONAL_LIBS} ${LIBGCRYPT_LIBRARIES} )
  else()
     tde_message_fatal( "The libgcrypt library hasn't been found on your system!" )
endif( LIBGCRYPT_LIBRARIES )
