summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-01-29 16:27:10 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-01-29 16:27:10 +0100
commit04662657229337ab88cd2cec83d0dd1c01aa6259 (patch)
tree2a977378a88f8188802e3f6c118a419ad990f9e5
parent7406ac3cfd04a72f86d48ea347fc873d909f2f17 (diff)
downloadarts-04662657229337ab88cd2cec83d0dd1c01aa6259.tar.gz
arts-04662657229337ab88cd2cec83d0dd1c01aa6259.zip
Use common CMake tests.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--CMakeLists.txt22
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 #######################