Browse Source

Use common CMake tests.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 4 months ago
parent
commit
8d7abfb0a2
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
1 changed files with 16 additions and 20 deletions
  1. 16
    20
      ConfigureChecks.cmake

+ 16
- 20
ConfigureChecks.cmake View File

@@ -9,27 +9,27 @@
9 9
 #
10 10
 #################################################
11 11
 
12
+
13
+# required stuff
14
+
15
+tde_setup_architecture_flags( )
16
+
17
+include(TestBigEndian)
18
+test_big_endian(WORDS_BIGENDIAN)
19
+
20
+tde_setup_largefiles( )
21
+
22
+find_package( TQt )
23
+find_package( TDE )
24
+
25
+
12 26
 ##### check for gcc visibility support #########
13
-# FIXME
14
-# This should check for [T]Qt3 visibility support
15 27
 
16 28
 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")
29
+  tde_setup_gcc_visibility( )
23 30
 endif( )
24 31
 
25 32
 
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 33
 check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY )
34 34
 check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
35 35
 
@@ -50,10 +50,6 @@ ELSE (USE_STRIGI)
50 50
 	MESSAGE(STATUS "Strigi support is: OFF!")
51 51
 ENDIF (USE_STRIGI)
52 52
 
53
-# common required stuff
54
-find_package( TQt )
55
-find_package( TDE )
56
-
57 53
 
58 54
 #### Find menudrake if needed #####################
59 55
 
@@ -64,4 +60,4 @@ IF (HAVE_MANDRAKE AND USE_MENUDRAKE)
64 60
 ELSE (HAVE_MANDRAKE AND USE_MENUDRAKE)
65 61
 	SET(MANDRAKE "")
66 62
 	MESSAGE(STATUS "Will use 'kmenuedit'!")
67
-ENDIF (HAVE_MANDRAKE AND USE_MENUDRAKE)
63
+ENDIF (HAVE_MANDRAKE AND USE_MENUDRAKE)

Loading…
Cancel
Save