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>
pull/4/head
Slávek Banko 6 years ago
parent 0cb6002af9
commit e20e503a96
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -18,9 +18,20 @@ cmake_minimum_required( VERSION 2.8 )
include( FindPkgConfig ) include( FindPkgConfig )
include( CheckCXXSourceCompiles ) include( CheckCXXSourceCompiles )
include( CheckSymbolExists )
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros ) 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 ) include( 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 # dbus-1
pkg_search_module( DBUS dbus-1 ) pkg_search_module( DBUS dbus-1 )
if( NOT DBUS_FOUND ) if( NOT DBUS_FOUND )
@ -17,3 +27,8 @@ endif( )
# tqt # tqt
find_package( TQt ) find_package( TQt )
# gcc visibility
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( )

Loading…
Cancel
Save