From 04662657229337ab88cd2cec83d0dd1c01aa6259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 29 Jan 2019 16:27:10 +0100 Subject: [PATCH] Use common CMake tests. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeLists.txt | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b5399d6..d224113 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 #######################