Use common CMake tests.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 6 years ago
parent 5838141d38
commit 004507b535
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -9,17 +9,26 @@
#
#################################################
if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE )
find_program( MSGFMT_EXECUTABLE msgfmt )
if( NOT MSGFMT_EXECUTABLE )
tde_message_fatal( "msgfmt program is required, but was not found on your system" )
endif( )
endif( )
# common required stuff
# 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( WITH_GCC_VISIBILITY )
# check required packages
pkg_search_module( XMU xmu )
if( NOT XMU_FOUND )
@ -30,4 +39,3 @@ pkg_search_module( XPM xpm )
if( NOT XPM_FOUND )
tde_message_fatal( "xpm is required, but was not found on your system" )
endif( )

Loading…
Cancel
Save