Use common CMake tests.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 6 years ago
parent 7406ac3cfd
commit 0466265722
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -16,6 +16,7 @@ cmake_minimum_required( VERSION 2.8 )
include( CheckCXXSourceCompiles )
include( CheckFunctionExists )
include( CheckSymbolExists )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( FindPkgConfig )
@ -65,6 +66,8 @@ tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
tde_setup_largefiles( )
##### check for include files ###################
@ -219,23 +222,16 @@ else( GLIB2_FOUND )
endif( GLIB2_FOUND )
##### check for gcc visibility support #########
# FIXME
# This should check for [T]Qt3 visibility support
##### check for TQt #############################
if( WITH_GCC_VISIBILITY )
if( NOT UNIX )
message(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
endif( NOT UNIX )
set( __KDE_HAVE_GCC_VISIBILITY 1 )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
endif( )
find_package( TQt )
##### check for TQt #############################
##### check for gcc visibility support #########
find_package( TQt )
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( )
##### write config.h file #######################

Loading…
Cancel
Save