Browse Source

Use common CMake tests.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/3/head
Slávek Banko 4 months ago
parent
commit
d6befa7beb
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
1 changed files with 13 additions and 12 deletions
  1. 13
    12
      ConfigureChecks.cmake

+ 13
- 12
ConfigureChecks.cmake View File

@@ -10,20 +10,21 @@
10 10
 #################################################
11 11
 
12 12
 
13
-##### check for gcc visibility support #########
14
-# FIXME
15
-# This should check for [T]Qt3 visibility support
13
+# required stuff
16 14
 
17
-if( WITH_GCC_VISIBILITY )
18
-  if( NOT UNIX )
19
-    tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
20
-  endif( NOT UNIX )
21
-  set( __KDE_HAVE_GCC_VISIBILITY 1 )
22
-  set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
23
-  set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
24
-endif( )
15
+tde_setup_architecture_flags( )
25 16
 
17
+include(TestBigEndian)
18
+test_big_endian(WORDS_BIGENDIAN)
19
+
20
+tde_setup_largefiles( )
26 21
 
27
-# common required stuff
28 22
 find_package( TQt )
29 23
 find_package( TDE )
24
+
25
+
26
+##### check for gcc visibility support #########
27
+
28
+if( WITH_GCC_VISIBILITY )
29
+  tde_setup_gcc_visibility( )
30
+endif( )

Loading…
Cancel
Save