summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-13 23:00:35 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-13 23:00:35 +0100
commit004507b535cae3eb3574ded0fd3992a6803023d4 (patch)
treeacd917e3715a1a9a410ef9a93e85dcd0fe7864e5
parent5838141d38aca482646c8a3b9ba8569681ee7995 (diff)
downloadtdedocker-004507b535cae3eb3574ded0fd3992a6803023d4.tar.gz
tdedocker-004507b535cae3eb3574ded0fd3992a6803023d4.zip
Use common CMake tests.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--ConfigureChecks.cmake24
1 files changed, 16 insertions, 8 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 5a6ef70..caa3a7d 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -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( )
-