Browse Source

Use common CMake tests.

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

+ 1
- 0
CMakeLists.txt View File

@@ -26,6 +26,7 @@ include( CheckTypeSize )
26 26
 include( CheckCSourceCompiles )
27 27
 include( CheckCXXSourceCompiles )
28 28
 include( CheckLibraryExists )
29
+include( CheckSymbolExists )
29 30
 
30 31
 
31 32
 ##### include our cmake modules #################

+ 14
- 15
ConfigureChecks.cmake View File

@@ -9,22 +9,26 @@
9 9
 #
10 10
 #################################################
11 11
 
12
+# required stuff
13
+
14
+tde_setup_architecture_flags( )
15
+
16
+include(TestBigEndian)
17
+test_big_endian(WORDS_BIGENDIAN)
18
+
19
+tde_setup_largefiles( )
20
+
21
+find_package( TQt )
22
+find_package( TDE )
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
-tde_setup_architecture_flags( )
27
-
28 32
 # freetype2
29 33
 if( BUILD_KDVI OR BUILD_KPDF OR BUILD_KSVG )
30 34
   pkg_search_module( FREETYPE freetype2 )
@@ -34,8 +38,3 @@ if( BUILD_KDVI OR BUILD_KPDF OR BUILD_KSVG )
34 38
     tde_message_fatal( "freetype2 is required, but was not found on your system" )
35 39
   endif( )
36 40
 endif( )
37
-
38
-
39
-# required stuff
40
-find_package( TQt )
41
-find_package( TDE )

Loading…
Cancel
Save