fix issue #2, add WITH_ALL_OPTIONS, clean up CMakeLists.txt from libvisual and write config.h.cmake up

Signed-off-by: gregory guy <g-gregory@gmx.fr>
pull/5/head
gregory guy 5 years ago
parent 351ba2f534
commit 7c4e6cb681
No known key found for this signature in database
GPG Key ID: 6EFE0EF249A874C0

@ -15,6 +15,7 @@ cmake_minimum_required( VERSION 2.8 )
##### general package setup ##################### ##### general package setup #####################
project( dolphin ) project( dolphin )
set( VERSION R14.1.0 )
##### include essential cmake modules ########### ##### include essential cmake modules ###########
@ -40,9 +41,10 @@ include( TDESetupPaths )
tde_setup_paths( ) tde_setup_paths( )
##### optional stuff ############################ ##### optional stuff
# option( WITH_LIBVISUAL "Enable libvisual support" OFF ) option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
##### user requested modules ##### user requested modules
@ -59,9 +61,7 @@ include( ConfigureChecks.cmake )
###### global compiler settings ################# ###### global compiler settings #################
add_definitions( add_definitions( -DHAVE_CONFIG_H )
-DHAVE_CONFIG_H
)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )

@ -0,0 +1,8 @@
#define VERSION "@VERSION@"
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
Loading…
Cancel
Save