Use common CMake tests.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 147523ef36)
r14.0.x
Slávek Banko 6 years ago
parent 53b077ab4e
commit 5f4f12257d
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -20,8 +20,9 @@ set( TDENETWORKMANAGER_VERSION "0.9" )
##### include essential cmake modules ###########
include( CheckCXXSourceCompiles )
include( FindPkgConfig )
include( CheckSymbolExists )
include( CheckCXXSourceCompiles )
##### include our cmake modules #################

@ -9,26 +9,21 @@
#
#################################################
# required stuff
find_package( TQt )
find_package( TDE )
tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
find_package( TQt )
find_package( TDE )
tde_setup_largefiles( )
##### gettext
if( BUILD_TRANSLATIONS )
include( FindGettext )
if( GETTEXT_FOUND )
set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
CACHE FILEPATH "path to msgfmt executable" )
endif( GETTEXT_FOUND )
##### check for gcc visibility support
if( NOT MSGFMT_EXECUTABLE )
tde_message_fatal( "msgfmt is required but was not found on your system." )
endif( NOT MSGFMT_EXECUTABLE )
endif( BUILD_TRANSLATIONS )
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( WITH_GCC_VISIBILITY )

Loading…
Cancel
Save