diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-01-30 09:22:58 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-02-02 16:31:34 +0100 |
commit | fd69253f814bb5355b2e2367433cff6a707f995e (patch) | |
tree | ea938c5b367feaab22ff0974d40dd3ec27699494 | |
parent | 192f1bc32ccda8e35e9d894661c92cd73e315138 (diff) | |
download | dbus-1-tqt-fd69253f814bb5355b2e2367433cff6a707f995e.tar.gz dbus-1-tqt-fd69253f814bb5355b2e2367433cff6a707f995e.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 <slavek.banko@axis.cz>
(cherry picked from commit e20e503a96778a72aa3afdc6153eb68d10dc6782)
-rw-r--r-- | CMakeLists.txt | 11 | ||||
-rw-r--r-- | ConfigureChecks.cmake | 15 |
2 files changed, 26 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 90a841b..66f5cb6 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( ) |