Browse Source

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 4 months ago
parent
commit
7c4e6cb681
Signed by: gregory guy <g-gregory@gmx.fr> GPG Key ID: 6EFE0EF249A874C0
2 changed files with 13 additions and 5 deletions
  1. 5
    5
      CMakeLists.txt
  2. 8
    0
      config.h.cmake

+ 5
- 5
CMakeLists.txt View File

@@ -15,6 +15,7 @@ cmake_minimum_required( VERSION 2.8 )
15 15
 ##### general package setup #####################
16 16
 
17 17
 project( dolphin )
18
+set( VERSION R14.1.0 )
18 19
 
19 20
 
20 21
 ##### include essential cmake modules ###########
@@ -40,9 +41,10 @@ include( TDESetupPaths )
40 41
 tde_setup_paths( )
41 42
 
42 43
 
43
-##### optional stuff ############################
44
+##### optional stuff
44 45
 
45
-# option( WITH_LIBVISUAL "Enable libvisual support" OFF )
46
+option( WITH_ALL_OPTIONS "Enable all optional support" OFF                                          )
47
+option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
46 48
 
47 49
 
48 50
 ##### user requested modules
@@ -59,9 +61,7 @@ include( ConfigureChecks.cmake )
59 61
 
60 62
 ###### global compiler settings #################
61 63
 
62
-add_definitions(
63
-  -DHAVE_CONFIG_H
64
-)
64
+add_definitions( -DHAVE_CONFIG_H )
65 65
 
66 66
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
67 67
 set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )

+ 8
- 0
config.h.cmake View File

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

Loading…
Cancel
Save