diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-01-29 16:27:10 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-01-29 16:27:31 +0100 |
commit | 672fc71b41d9c153af16eeef04f0d4741503e9ca (patch) | |
tree | a92c0a2fc7783824304af3d9691d9343cc6371ef /CMakeLists.txt | |
parent | ed86e389a29507db8f284ea3c4a2e4da9cea48ba (diff) | |
download | arts-672fc71b41d9c153af16eeef04f0d4741503e9ca.tar.gz arts-672fc71b41d9c153af16eeef04f0d4741503e9ca.zip |
Use common CMake tests.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 04662657229337ab88cd2cec83d0dd1c01aa6259)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 22 |
1 files 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 ####################### |