summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-01-30 09:22:58 +0100
committerSlávek Banko <[email protected]>2019-01-30 09:22:58 +0100
commite20e503a96778a72aa3afdc6153eb68d10dc6782 (patch)
tree34c960fcb17961bf650b3b01500f7b1da8a2eb1a
parent0cb6002af9e5f56311ea70216f365026302a2260 (diff)
downloaddbus-1-tqt-e20e503a96778a72aa3afdc6153eb68d10dc6782.tar.gz
dbus-1-tqt-e20e503a96778a72aa3afdc6153eb68d10dc6782.zip
Update CMake rules
+ Add WITH_GCC_VISIBILITY option + Use common tde_setup_gcc_visibility + Add TestBigEndian and tde_setup_largefiles Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r--CMakeLists.txt11
-rw-r--r--ConfigureChecks.cmake15
2 files changed, 26 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe129f6..275765a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,9 +18,20 @@ cmake_minimum_required( VERSION 2.8 )
include( FindPkgConfig )
include( CheckCXXSourceCompiles )
+include( CheckSymbolExists )
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros )
+
+
+##### optional stuff
+
+option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
+option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
+
+
+##### configure checks ##########################
+
include( ConfigureChecks.cmake )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 951e55f..f155fe2 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -9,6 +9,16 @@
#
#################################################
+##### setup architecture flags ##################
+
+tde_setup_architecture_flags( )
+
+include(TestBigEndian)
+test_big_endian(WORDS_BIGENDIAN)
+
+tde_setup_largefiles( )
+
+
# dbus-1
pkg_search_module( DBUS dbus-1 )
if( NOT DBUS_FOUND )
@@ -17,3 +27,8 @@ endif( )
# tqt
find_package( TQt )
+
+# gcc visibility
+if( WITH_GCC_VISIBILITY )
+ tde_setup_gcc_visibility( )
+endif( )