Browse Source

Use common CMake tests.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Slávek Banko 1 month ago
parent
commit
fd4fdb5e2f
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
1 changed files with 14 additions and 19 deletions
  1. 14
    19
      ConfigureChecks.cmake

+ 14
- 19
ConfigureChecks.cmake View File

@@ -9,27 +9,26 @@
9 9
 #
10 10
 #################################################
11 11
 
12
+
13
+# required stuff
14
+find_package( TQt )
15
+find_package( TDE )
16
+
17
+tde_setup_architecture_flags( )
18
+
19
+include(TestBigEndian)
20
+test_big_endian(WORDS_BIGENDIAN)
21
+
22
+tde_setup_largefiles( )
23
+
24
+
12 25
 ##### check for gcc visibility support #########
13
-# FIXME
14
-# This should check for [T]Qt3 visibility support
15 26
 
16 27
 if( WITH_GCC_VISIBILITY )
17
-  if( NOT UNIX )
18
-    tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
19
-  endif( NOT UNIX )
20
-  set( __KDE_HAVE_GCC_VISIBILITY 1 )
21
-  set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
22
-  set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
28
+  tde_setup_gcc_visibility( )
23 29
 endif( )
24 30
 
25 31
 
26
-if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE )
27
-  find_program( MSGFMT_EXECUTABLE msgfmt )
28
-  if( NOT MSGFMT_EXECUTABLE )
29
-    tde_message_fatal( "msgfmt program is required, but was not found on your system" )
30
-  endif( )
31
-endif( )
32
-
33 32
 check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY )
34 33
 check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
35 34
 
@@ -67,7 +66,3 @@ if ( BUILD_KGTK_GTK2 )
67 66
         message("** INFORMATION: You're libdl does not contain dlvsym - SWT apps will not be supported")
68 67
     endif(LIBDLVSYM_LIBRARY)
69 68
 endif ()
70
-
71
-# common required stuff
72
-find_package( TQt )
73
-find_package( TDE )

Loading…
Cancel
Save