Browse Source

Use common CMake tests.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 3 months ago
parent
commit
0466265722
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
1 changed files with 9 additions and 13 deletions
  1. 9
    13
      CMakeLists.txt

+ 9
- 13
CMakeLists.txt View File

@@ -16,6 +16,7 @@ cmake_minimum_required( VERSION 2.8 )
16 16
 
17 17
 include( CheckCXXSourceCompiles )
18 18
 include( CheckFunctionExists )
19
+include( CheckSymbolExists )
19 20
 include( CheckIncludeFile )
20 21
 include( CheckLibraryExists )
21 22
 include( FindPkgConfig )
@@ -65,6 +66,8 @@ tde_setup_architecture_flags( )
65 66
 include(TestBigEndian)
66 67
 test_big_endian(WORDS_BIGENDIAN)
67 68
 
69
+tde_setup_largefiles( )
70
+
68 71
 
69 72
 ##### check for include files ###################
70 73
 
@@ -219,23 +222,16 @@ else( GLIB2_FOUND )
219 222
 endif( GLIB2_FOUND )
220 223
 
221 224
 
222
-##### check for gcc visibility support #########
223
-# FIXME
224
-# This should check for [T]Qt3 visibility support
225
+##### check for TQt #############################
225 226
 
226
-if( WITH_GCC_VISIBILITY )
227
- if( NOT UNIX )
228
- message(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
229
- endif( NOT UNIX )
230
- set( __KDE_HAVE_GCC_VISIBILITY 1 )
231
- set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
232
- set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
233
-endif( )
227
+find_package( TQt )
234 228
 
235 229
 
236
-##### check for TQt #############################
230
+##### check for gcc visibility support #########
237 231
 
238
-find_package( TQt )
232
+if( WITH_GCC_VISIBILITY )
233
+  tde_setup_gcc_visibility( )
234
+endif( )
239 235
 
240 236
 
241 237
 ##### write config.h file #######################

Loading…
Cancel
Save