Browse Source

Initial attempt at migration to standard TDE CMake build system

Timothy Pearson 7 years ago
parent
commit
0710d08800
100 changed files with 767 additions and 362 deletions
  1. 78
    354
      CMakeLists.txt
  2. 399
    0
      CMakeLists.txt.orig
  3. 217
    0
      ConfigureChecks.cmake
  4. 5
    0
      config.h.cmake
  5. 8
    8
      data/CMakeLists.txt
  6. 12
    0
      doc/CMakeLists.txt
  7. 0
    0
      doc/de/.gitignore
  8. 12
    0
      doc/en/CMakeLists.txt
  9. 0
    0
      doc/en/headers-and-unicode-lyrics.png
  10. 0
    0
      doc/en/index.docbook
  11. 0
    0
      doc/en/rg-audiofilemanager.png
  12. 0
    0
      doc/en/rg-audiomixer.png
  13. 0
    0
      doc/en/rg-bankeditor.png
  14. 0
    0
      doc/en/rg-button-bar-time.png
  15. 0
    0
      doc/en/rg-button-from-end.png
  16. 0
    0
      doc/en/rg-clefdialog.png
  17. 0
    0
      doc/en/rg-coda.png
  18. 0
    0
      doc/en/rg-colours.png
  19. 0
    0
      doc/en/rg-cursors.png
  20. 0
    0
      doc/en/rg-devicemanager.png
  21. 0
    0
      doc/en/rg-eraser.png
  22. 0
    0
      doc/en/rg-eventfilter.png
  23. 0
    0
      doc/en/rg-eventlisteditor.png
  24. 0
    0
      doc/en/rg-gridquantizer.png
  25. 0
    0
      doc/en/rg-guitarchorddialog.png
  26. 0
    0
      doc/en/rg-guitarchordeditordialog.png
  27. 0
    0
      doc/en/rg-ipb-audio.png
  28. 0
    0
      doc/en/rg-ipb-midi.png
  29. 0
    0
      doc/en/rg-ipb-synth.png
  30. 0
    0
      doc/en/rg-keysigdialog.png
  31. 0
    0
      doc/en/rg-loadpreset.png
  32. 0
    0
      doc/en/rg-mainwindow.png
  33. 0
    0
      doc/en/rg-markerloop.png
  34. 0
    0
      doc/en/rg-matrixview.png
  35. 0
    0
      doc/en/rg-metronome.png
  36. 0
    0
      doc/en/rg-midifilter.png
  37. 0
    0
      doc/en/rg-midimixer.png
  38. 0
    0
      doc/en/rg-move.png
  39. 0
    0
      doc/en/rg-notation-toolbars.png
  40. 0
    0
      doc/en/rg-notationquantizer.png
  41. 0
    0
      doc/en/rg-notationtools.png
  42. 0
    0
      doc/en/rg-notationview-multipage.png
  43. 0
    0
      doc/en/rg-notationview.png
  44. 0
    0
      doc/en/rg-pastedialog.png
  45. 0
    0
      doc/en/rg-pencil.png
  46. 0
    0
      doc/en/rg-percussionmatrix.png
  47. 0
    0
      doc/en/rg-plugin-dialog.png
  48. 0
    0
      doc/en/rg-pluginbuttons.png
  49. 0
    0
      doc/en/rg-plugineditorbutton.png
  50. 0
    0
      doc/en/rg-quickmarker.png
  51. 0
    0
      doc/en/rg-rawnoteruler.png
  52. 0
    0
      doc/en/rg-resize.png
  53. 0
    0
      doc/en/rg-segmentparameterbox.png
  54. 0
    0
      doc/en/rg-segno.png
  55. 0
    0
      doc/en/rg-select.png
  56. 0
    0
      doc/en/rg-split.png
  57. 0
    0
      doc/en/rg-synthpluginbuttons.png
  58. 0
    0
      doc/en/rg-tempodialog.png
  59. 0
    0
      doc/en/rg-temporuler.png
  60. 0
    0
      doc/en/rg-text-cursor.png
  61. 0
    0
      doc/en/rg-textdialog.png
  62. 0
    0
      doc/en/rg-timesigdialog.png
  63. 0
    0
      doc/en/rg-trackbutton-instrumentmenu.png
  64. 0
    0
      doc/en/rg-trackbutton-instruments.png
  65. 0
    0
      doc/en/rg-trackbutton-labels.png
  66. 0
    0
      doc/en/rg-trackbuttons.png
  67. 0
    0
      doc/en/rg-trackeditor.png
  68. 0
    0
      doc/en/rg-trackparameterbox.png
  69. 0
    0
      doc/en/rg-transport.png
  70. 0
    0
      doc/en/rg-triggersegment.png
  71. 0
    0
      doc/en/rg-tupletdialog.png
  72. 0
    0
      doc/en/rg-useornament.png
  73. 0
    0
      doc/en/tips
  74. 0
    0
      doc/en/transpose-by-interval.png
  75. 12
    0
      doc/es/CMakeLists.txt
  76. 0
    0
      doc/es/index.docbook
  77. 12
    0
      doc/ja/CMakeLists.txt
  78. 0
    0
      doc/ja/index.docbook
  79. 12
    0
      doc/sv/CMakeLists.txt
  80. 0
    0
      doc/sv/index.docbook
  81. 0
    0
      doc/sv/rg-audiofilemanager.png
  82. 0
    0
      doc/sv/rg-audiomixer.png
  83. 0
    0
      doc/sv/rg-bankeditor.png
  84. 0
    0
      doc/sv/rg-clefdialog.png
  85. 0
    0
      doc/sv/rg-colours.png
  86. 0
    0
      doc/sv/rg-devicemanager.png
  87. 0
    0
      doc/sv/rg-eventlisteditor.png
  88. 0
    0
      doc/sv/rg-gridquantizer.png
  89. 0
    0
      doc/sv/rg-ipb-audio.png
  90. 0
    0
      doc/sv/rg-ipb-midi.png
  91. 0
    0
      doc/sv/rg-ipb-synth.png
  92. 0
    0
      doc/sv/rg-keysigdialog.png
  93. 0
    0
      doc/sv/rg-mainwindow.png
  94. 0
    0
      doc/sv/rg-matrixview.png
  95. 0
    0
      doc/sv/rg-metronome.png
  96. 0
    0
      doc/sv/rg-midifilter.png
  97. 0
    0
      doc/sv/rg-midimixer.png
  98. 0
    0
      doc/sv/rg-notationquantizer.png
  99. 0
    0
      doc/sv/rg-notationview-multipage.png
  100. 0
    0
      doc/sv/rg-notationview.png

+ 78
- 354
CMakeLists.txt View File

@@ -1,56 +1,40 @@
1
-# Rosegarden
2
-# A MIDI and audio sequencer and musical notation editor.
1
+#################################################
3 2
 #
4
-# This program is Copyright 2000-2008
5
-#     Guillaume Laurent   <glaurent@telegraph-road.org>,
6
-#     Chris Cannam        <cannam@all-day-breakfast.com>,
7
-#     Richard Bown        <richard.bown@ferventsoftware.com>
3
+#  (C) 2011 Timothy Pearson
4
+#  kb9vqf (AT) pearsoncomputing.net
8 5
 #
9
-# The moral rights of Guillaume Laurent, Chris Cannam, and Richard
10
-# Bown to claim authorship of this work have been asserted.
6
+#  Improvements and feedback are welcome
11 7
 #
12
-# This file is Copyright 2006-2008
13
-#     Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
8
+#  This file is released under GPL >= 2
14 9
 #
15
-# Other copyrights also apply to some parts of this work.  Please
16
-# see the AUTHORS file and individual file headers for details.
17
-#
18
-# This program is free software; you can redistribute it and/or
19
-# modify it under the terms of the GNU General Public License as
20
-# published by the Free Software Foundation; either version 2 of the
21
-# License, or (at your option) any later version.  See the file
22
-# COPYING included with this distribution for more information.
10
+#################################################
11
+
12
+cmake_minimum_required( VERSION 2.8 )
13
+
14
+
15
+##### general package setup #####################
23 16
 
24 17
 # The name of our project is "ROSEGARDEN". CMakeLists files in this project can
25
-# refer to the root source directory of the project as ${ROSEGARDEN_SOURCE_DIR} 
18
+# refer to the root source directory of the project as ${ROSEGARDEN_SOURCE_DIR}
26 19
 # and to the root binary directory of the project as ${ROSEGARDEN_BINARY_DIR}
27 20
 PROJECT(ROSEGARDEN)
28 21
 
29
-# CMake supports KDE checks since this version number
30
-CMAKE_MINIMUM_REQUIRED(VERSION 2.4.2)
31 22
 
32
-# Show full commands and messages. It generates a lot of console output.
33
-# It is necessary for Eclipse warning/error parser, 
34
-# but it can be enabled anyway with "make VERBOSE=1"
35
-SET(CMAKE_VERBOSE_MAKEFILE OFF)
23
+##### include essential cmake modules ###########
36 24
 
37
-# Seems that relative paths break some scripts. Don't set it ON
38
-SET(CMAKE_USE_RELATIVE_PATHS OFF)
25
+include( CheckCXXSourceCompiles )
26
+include( CheckFunctionExists )
27
+include( CheckIncludeFileCXX )
28
+include( CheckLibraryExists )
29
+include( CheckStructHasMember )
30
+include( CheckSymbolExists )
31
+include( CheckTypeSize )
32
+include( FindPkgConfig )
39 33
 
40
-# Rebuild the object files if the rules have changed, but not the actual source 
41
-# files or headers (e.g. if you changed the some compiler switches)
42
-SET(CMAKE_SKIP_RULE_DEPENDENCY OFF)
43
-
44
-# Misc settings
45
-SET(CMAKE_COLOR_MAKEFILE ON)
46
-SET(CMAKE_INCLUDE_CURRENT_DIR ON)
47
-SET(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
48
-
49
-# Additional CMake modules for 3rd party library checks reside here
50
-SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_admin")
34
+##### set up versioning #########################
51 35
 
52 36
 # Mark as advanced
53
-MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH 
37
+MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH
54 38
                  LIBRARY_OUTPUT_PATH
55 39
 		 CMAKE_BACKWARDS_COMPATIBILITY)
56 40
 
@@ -66,15 +50,32 @@ IF(VERSION_SUFFIX)
66 50
 ENDIF(VERSION_SUFFIX)
67 51
 ADD_DEFINITIONS(-D'VERSION="${VERSION}"')
68 52
 
69
-# User options
70
-OPTION(WANT_DEBUG   "Include debug support" OFF)
71
-OPTION(WANT_FULLDBG "Full debug support (BIG executables!)" OFF)
72
-OPTION(WANT_SOUND   "Include Sound support" ON)
73
-OPTION(WANT_JACK    "Include Jack (Jack Audio Connection Kit) support" ON)
74
-OPTION(WANT_DSSI    "Include DSSI support" ON)
75
-OPTION(WANT_LIRC    "Include LIRC (Linux Infrared Remote Control) support" OFF)
76
-OPTION(WANT_PCH     "Use precompiled headers" OFF)
77
-OPTION(WANT_TEST    "Perform unit tests" OFF)
53
+
54
+##### include our cmake modules #################
55
+
56
+set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
57
+include( TDEMacros )
58
+
59
+
60
+##### setup install paths #######################
61
+
62
+include( TDESetupPaths )
63
+tde_setup_paths( )
64
+
65
+
66
+##### user requested modules ####################
67
+
68
+option( BUILD_ALL "Build all" OFF )
69
+option( BUILD_DOC "Build doc" ${BUILD_ALL} )
70
+option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
71
+option( WANT_DEBUG   "Include debug support" OFF )
72
+option( WANT_FULLDBG "Full debug support (BIG executables!)" OFF )
73
+option( WANT_SOUND   "Include Sound support" ${BUILD_ALL} )
74
+option( WANT_JACK    "Include Jack (Jack Audio Connection Kit) support" ${BUILD_ALL} )
75
+option( WANT_DSSI    "Include DSSI support" ${BUILD_ALL} )
76
+option( WANT_LIRC    "Include LIRC (Linux Infrared Remote Control) support" OFF )
77
+option( WANT_PCH     "Use precompiled headers" OFF )
78
+option( WANT_TEST    "Perform unit tests" OFF )
78 79
 
79 80
 IF(WANT_TEST)
80 81
     ENABLE_TESTING()
@@ -86,314 +87,37 @@ IF(NOT WANT_SOUND)
86 87
     ADD_DEFINITIONS(-DNO_SOUND)
87 88
 ENDIF(NOT WANT_SOUND)
88 89
 
89
-# Check for KDE3
90
-FIND_PACKAGE(KDE3 REQUIRED QUIET)
91
-IF(QT_FOUND)
92
-    ADD_DEFINITIONS(${QT_DEFINITIONS})
93
-    MESSAGE(STATUS "Found Qt3 (version ${qt_version_str})")
94
-    #MESSAGE("QT_LIBRARIES: ${QT_LIBRARIES}")
95
-ELSE(QT_FOUND)
96
-    MESSAGE(STATUS_ERROR "Qt3 package not found--assuming TQt4")
97
-    SET(QT_INCLUDE_DIR "/usr/include/qt4")
98
-ENDIF(QT_FOUND)
99
-SET(QT_UIC_EXECUTABLE "/usr/bin/uic-tqt")
100
-SET(QT_MOC_EXECUTABLE "/usr/bin/tmoc")
101
-IF(KDE3_FOUND)
102
-    ADD_DEFINITIONS(${KDE3_DEFINITIONS})
103
-    #MESSAGE("KDE3PREFIX: ${KDE3PREFIX}")
104
-    KDE3_PRINT_RESULTS()
105
-    #MESSAGE("QT_AND_TDECORE_LIBS: ${QT_AND_TDECORE_LIBS}")
106
-ELSE(KDE3_FOUND)    
107
-    MESSAGE(FATAL_ERROR "KDE3 Not found")
108
-ENDIF(KDE3_FOUND)
109
-
110
-# Clear the flags set by FindKDE3 
111
-SET(CMAKE_CXX_FLAGS "-I/usr/include/tqt -include tqt.h -DTQT_THREAD_SUPPORT")
112
-MARK_AS_ADVANCED(KDE3_BUILD_TESTS
113
-                 KDE3_ENABLE_FINAL
114
-		 KDE3_DCOPIDL_EXECUTABLE
115
-		 KDE3_DCOPIDL2CPP_EXECUTABLE
116
-		 KDE3_INCLUDE_DIR
117
-		 KDE3_KCFGC_EXECUTABLE
118
-		 KDE3_TDECORE_LIBRARY
119
-		 KDECONFIG_EXECUTABLE )
120
-
121
-# Provide the KDE3 prefix as a default prefix (if the user has CMake 2.4.4)
122
-IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
123
-    SET(CMAKE_INSTALL_PREFIX ${KDE3PREFIX} CACHE PATH
124
-        "Install path prefix, prepended onto install directories." FORCE)
125
-ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 
126
-
127
-# Check for PKG-CONFIG
128
-FIND_PACKAGE(PkgConfig REQUIRED)
129
-IF(PKG_CONFIG_FOUND)
130
-    MESSAGE(STATUS "Program pkg-config found (${PKG_CONFIG_EXECUTABLE})")
131
-ELSE(PKG_CONFIG_FOUND)
132
-    MESSAGE(FATAL_ERROR "Program pkg-config not found")
133
-ENDIF(PKG_CONFIG_FOUND)
134
-
135
-# Initialize some variables
136
-SET(HAVE_XFT FALSE)
137
-SET(HAVE_ALSA FALSE)
138
-SET(HAVE_JACK FALSE)
139
-SET(HAVE_DSSI FALSE)
140
-SET(HAVE_LIBLO FALSE)
141
-SET(HAVE_LIBLRDF FALSE)
142
-SET(HAVE_LADSPA FALSE)
143
-SET(HAVE_LIRC FALSE)
144
-SET(HAVE_FFTW3F FALSE)
145
-
146
-# Check for Xft
147
-PKG_CHECK_MODULES(XFT xft>=2.1.0)
148
-IF(XFT_FOUND)
149
-    ADD_DEFINITIONS(-DHAVE_XFT)
150
-    SET(HAVE_XFT TRUE)
151
-    SET(XFT_LIBS ${XFT_LIBRARIES})
152
-    #MESSAGE("XFT_LIBS: ${XFT_LIBS}")
153
-    LIST(APPEND XFT_LIB_DIR ${XFT_LIBRARY_DIRS} ${XFT_LIBDIR})
154
-    #MESSAGE("XFT_LIB_DIR: ${XFT_LIB_DIR}")
155
-    LIST(APPEND XFT_INC_DIR ${XFT_INCLUDE_DIRS} ${XFT_INCLUDEDIR})
156
-    #MESSAGE("XFT_INC_DIR: ${XFT_INC_DIR}")    
157
-ENDIF(XFT_FOUND)
158
-
159
-IF(WANT_SOUND)
160
-
161
-    # Check for ALSA 1.0
162
-    PKG_CHECK_MODULES(ALSA REQUIRED alsa>=1.0)
163
-    IF(ALSA_FOUND)
164
-        SET(HAVE_ALSA TRUE)
165
-        ADD_DEFINITIONS(-DHAVE_ALSA)
166
-        SET(ALSA_LIBS ${ALSA_LIBRARIES})
167
-        #MESSAGE("ALSA_LIBS: ${ALSA_LIBS}")
168
-        LIST(APPEND ALSA_LIB_DIR ${ALSA_LIBRARY_DIRS} ${ALSA_LIBDIR} )
169
-        #MESSAGE("ALSA_LIB_DIR: ${ALSA_LIB_DIR}")
170
-        LIST(APPEND ALSA_INC_DIR ${ALSA_INCLUDE_DIRS} ${ALSA_INCLUDEDIR})
171
-        #MESSAGE("ALSA_INC_DIR: ${ALSA_INC_DIR}")
172
-    ELSE(ALSA_FOUND)
173
-        MESSAGE(FATAL_ERROR "Please install the required package. Aborting")
174
-    ENDIF(ALSA_FOUND)
175
-    
176
-    IF(WANT_JACK)
177
-        PKG_CHECK_MODULES(JACK jack>=0.77)
178
-        IF(JACK_FOUND)
179
-            ADD_DEFINITIONS(-DHAVE_LIBJACK)
180
-            SET(HAVE_JACK TRUE)
181
-            SET(JACK_LIBS ${JACK_LIBRARIES})
182
-            #MESSAGE("JACK_LIBS: ${JACK_LIBS}")
183
-            LIST(APPEND JACK_LIB_DIR ${JACK_LIBDIR} ${JACK_LIBRARY_DIRS})
184
-            #MESSAGE("JACK_LIB_DIR: ${JACK_LIB_DIR}")
185
-            LIST(APPEND JACK_INC_DIR ${JACK_INCLUDEDIR} ${JACK_INCLUDE_DIRS})
186
-            #MESSAGE("JACK_INC_DIR: ${JACK_INC_DIR}")
187
-        ENDIF(JACK_FOUND)
188
-    ENDIF(WANT_JACK)
189
-    
190
-    IF(WANT_DSSI)
191
-        PKG_CHECK_MODULES(DSSI dssi>=0.4)
192
-        IF(DSSI_FOUND)
193
-            ADD_DEFINITIONS(-DHAVE_DSSI)
194
-            SET(HAVE_DSSI TRUE)
195
-            LIST(APPEND DSSI_INC_DIR ${DSSI_INCLUDE_DIRS} ${DSSI_INCLUDEDIR})
196
-            #MESSAGE("DSSI_INC_DIR: ${DSSI_INC_DIR}")
197
-        ENDIF(DSSI_FOUND)
198
-    ENDIF(WANT_DSSI)
199
-    
200
-    PKG_CHECK_MODULES(LIBLO liblo>=0.7)
201
-    IF(LIBLO_FOUND)
202
-        ADD_DEFINITIONS(-DHAVE_LIBLO)
203
-        SET(HAVE_LIBLO TRUE)
204
-        SET(LIBLO_LIBS ${LIBLO_LIBRARIES})
205
-        #MESSAGE("LIBLO_LIBS: ${LIBLO_LIBS}")
206
-        LIST(APPEND LIBLO_LIB_DIR ${LIBLO_LIBDIR} ${LIBLO_LIBRARY_DIRS})
207
-        #MESSAGE("LIBLO_LIB_DIR: ${LIBLO_LIB_DIR}")
208
-        LIST(APPEND LIBLO_INC_DIR ${LIBLO_INCLUDEDIR} ${LIBLO_INCLUDE_DIRS})
209
-        #MESSAGE("LIBLO_INC_DIR: ${LIBLO_INC_DIR}")
210
-    ENDIF(LIBLO_FOUND)
211
-    
212
-    PKG_CHECK_MODULES(LRDF lrdf>=0.3)
213
-    IF(LRDF_FOUND)
214
-        SET(HAVE_LIBLRDF TRUE)
215
-        ADD_DEFINITIONS(-DHAVE_LIBLRDF)
216
-        SET(LRDF_LIBS ${LRDF_LIBRARIES})
217
-        #MESSAGE("LRDF_LIBS: ${LRDF_LIBS}")
218
-        LIST(APPEND LRDF_LIB_DIR ${LRDF_LIBDIR} ${LRDF_LIBRARY_DIRS})
219
-        #MESSAGE("LRDF_LIB_DIR: ${LRDF_LIB_DIR}")
220
-        LIST(APPEND LRDF_INC_DIR ${LRDF_INCLUDEDIR} ${LRDF_INCLUDE_DIRS})
221
-        #MESSAGE("LRDF_INC_DIR: ${LRDF_INC_DIR}")
222
-    ENDIF(LRDF_FOUND)
223
-
224
-    FIND_PACKAGE(LADSPA QUIET)
225
-    IF(LADSPA_FOUND)
226
-        SET(HAVE_LADSPA TRUE)
227
-        ADD_DEFINITIONS(-DHAVE_LADSPA)
228
-        SET(LADSPA_INC_DIR ${LADSPA_INCLUDE_DIR})
229
-        MESSAGE(STATUS "Found LADSPA (${LADSPA_INC_DIR})")
230
-    ENDIF(LADSPA_FOUND)
231
-    
232
-ENDIF(WANT_SOUND)
233
-
234
-PKG_CHECK_MODULES(FFTW3F REQUIRED fftw3f>=3.0.0)
235
-IF(FFTW3F_FOUND)
236
-    ADD_DEFINITIONS(-DHAVE_FFTW3F)
237
-    SET(HAVE_FFTW3F TRUE)
238
-    SET(FFTW3F_LIBS ${FFTW3F_LIBRARIES})
239
-    #MESSAGE("FFTW3F_LIBS: ${FFTW3F_LIBS}")
240
-    LIST(APPEND FFTW3F_LIB_DIR ${FFTW3F_LIBDIR} ${FFTW3F_LIBRARY_DIRS})
241
-    #MESSAGE("FFTW3F_LIB_DIR: ${FFTW3F_LIB_DIR}")
242
-    LIST(APPEND FFTW3F_INC_DIR ${FFTW3F_INCLUDEDIR} ${FFTW3F_INCLUDE_DIRS})
243
-    #MESSAGE("FFTW3F_INC_DIR: ${FFTW3F_INC_DIR}")
244
-ELSE(FFTW3F_FOUND)
245
-    MESSAGE(FATAL_ERROR "Please install the required package. Aborting")
246
-ENDIF(FFTW3F_FOUND)
247
-
248
-IF(WANT_LIRC)
249
-    FIND_PACKAGE(LIRC QUIET)
250
-    IF(LIRC_FOUND)
251
-        SET(HAVE_LIRC TRUE)
252
-        ADD_DEFINITIONS(-DHAVE_LIRC)
253
-        MESSAGE(STATUS "Found LIRC (${LIRC_LIBRARY})")
254
-        SET(LIRC_LIBS ${LIRC_LIBRARY})
255
-        SET(LIRC_INC_DIR ${LIRC_INCLUDE_DIR})
256
-        SET(LIRC_LIB_DIR ${LIRC_LIBRARY_DIR})
257
-        #MESSAGE("LIRC_LIBS: ${LIRC_LIBS}")
258
-        #MESSAGE("LIRC_LIB_DIR: ${LIRC_LIB_DIR}")
259
-        #MESSAGE("LIRC_INC_DIR: ${LIRC_INC_DIR}")    
260
-    ENDIF(LIRC_FOUND)
261
-ENDIF(WANT_LIRC)
262
-
263
-FIND_PACKAGE(MSGFMT REQUIRED)
264
-IF(MSGFMT_FOUND)
265
-    MESSAGE(STATUS "Program msgfmt found (${MSGFMT_EXECUTABLE})")
266
-ENDIF(MSGFMT_FOUND)
267
-
268
-FIND_PACKAGE(KDECONFIG)
269
-IF(KDECONFIG_EXECUTABLE)
270
-    MESSAGE(STATUS "Program kde-config found (${KDECONFIG_EXECUTABLE})")
271
-    #MESSAGE("KDE3PREFIX: ${KDE3PREFIX}")
272
-ENDIF(KDECONFIG_EXECUTABLE)
273
-
274
-FIND_PACKAGE(MEINPROC REQUIRED)
275
-IF(MEINPROC_FOUND)
276
-    MESSAGE(STATUS "Program meinproc found (${MEINPROC_EXECUTABLE})")
277
-ENDIF(MEINPROC_FOUND)
278
-
279
-# Check GCC for PCH support
280
-SET(USE_PCH FALSE)
281
-IF(WANT_PCH)
282
-    FIND_PACKAGE(PCHSupport)
283
-    IF(PCHSupport_FOUND)
284
-        SET(USE_PCH TRUE)
285
-        ADD_DEFINITIONS(-DUSE_PCH)
286
-        MESSAGE(STATUS "Enabling precompiled headers for GCC ${gcc_compiler_version}") 
287
-    ENDIF(PCHSupport_FOUND)
288
-ENDIF(WANT_PCH)
289
-
290
-# Check PTHREAD_MUTEX_RECURSIVE
291
-INCLUDE(CheckCSourceCompiles)
292
-CHECK_C_SOURCE_COMPILES(
293
-    "#include <pthread.h>
294
-     int main(int argc, char **argv) {
295
-         pthread_mutexattr_t attr;
296
-         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
297
-         return 0;
298
-     }" PTHREAD_HAS_MUTEX_RECURSIVE)
299
-IF(PTHREAD_HAS_MUTEX_RECURSIVE)
300
-    ADD_DEFINITIONS(-DHAVE_PTHREAD_MUTEX_RECURSIVE)
301
-ENDIF(PTHREAD_HAS_MUTEX_RECURSIVE)
302
-# End of PTHREAD_MUTEX_RECURSIVE Test
303
-
304
-SET(CMAKE_CXX_FLAGS_RELEASE         "-O2 -w -fexceptions -DNDEBUG -include tqt.h")
305
-SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO  "-O2 -g -Wall -fexceptions -DDEBUG -include tqt.h")
306
-SET(CMAKE_CXX_FLAGS_DEBUG           "-O0 -g3 -Wall -fexceptions -DDEBUG -include tqt.h")
307
-
308
-MESSAGE(STATUS "Rosegarden ${VERSION} will be built for install into ${CMAKE_INSTALL_PREFIX}")
309
-
310
-IF(WANT_DEBUG)
311
-    IF(WANT_FULLDBG)
312
-        MESSAGE(STATUS "Configured to compile including full debug information in the executables")
313
-        SET(CMAKE_BUILD_TYPE Debug CACHE STRING
314
-            "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
315
-    ELSE(WANT_FULLDBG)
316
-        MESSAGE(STATUS "Configured to compile including debug information in the executables")
317
-        SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
318
-            "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
319
-    ENDIF(WANT_FULLDBG)
320
-ELSE(WANT_DEBUG)
321
-    MESSAGE(STATUS "Configured to compile for release without debug information")
322
-    SET(CMAKE_BUILD_TYPE Release CACHE STRING
323
-        "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
324
-ENDIF(WANT_DEBUG)
325
-MARK_AS_ADVANCED(CMAKE_BUILD_TYPE)
326
-
327
-# Warn the user if important libraries are missing
328
-INCLUDE(UserWarnings)
329
-
330
-# Recurse into the "src" subdirectory. This does not actually
331
-# cause another cmake executable to run. The same process will walk through
332
-# the project's entire directory structure.
333
-# Output directory will be "RGbuild/"
334
-ADD_SUBDIRECTORY(src RGbuild)
335
-
336
-# Build and install the translations directory
337
-ADD_SUBDIRECTORY(po RGbuild/po)
338
-
339
-# Build and install the documentation directory
340
-ADD_SUBDIRECTORY(docs RGbuild/docs)
341
-
342
-# Install data files
343
-ADD_SUBDIRECTORY(data RGbuild/data)
344
-
345
-# install some documents...
346
-# INSTALL( FILES AUTHORS COPYING README TRANSLATORS INSTALL rosegarden.lsm
347
-#         DESTINATION share/doc/rosegarden-${VERSION} )
90
+##### configure checks ##########################
91
+
92
+include( ConfigureChecks.cmake )
93
+
94
+
95
+###### global compiler settings #################
96
+
97
+add_definitions(
98
+  -DHAVE_CONFIG_H
99
+)
100
+
101
+set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
102
+set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
103
+set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
104
+
105
+
106
+##### source directories ########################
107
+
108
+add_subdirectory( src )
109
+add_subdirectory( data )
110
+tde_conditional_add_subdirectory( BUILD_DOC doc )
111
+tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
112
+
113
+
114
+##### write configure files #####################
115
+
116
+configure_file( config.h.cmake config.h @ONLY )
348 117
 
349 118
 # create and install the version file
350 119
 FILE(WRITE version.txt "${VERSION}\n")
351
-INSTALL( FILES version.txt
352
-         DESTINATION ${KDE3DATADIR}/rosegarden )
353
-
354
-# uninstall custom target
355
-CONFIGURE_FILE(
356
-    "${CMAKE_SOURCE_DIR}/cmake_admin/cmake_uninstall.cmake.in"
357
-    "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
358
-    IMMEDIATE @ONLY)
359
-
360
-ADD_CUSTOM_TARGET(uninstall
361
-    "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
362
-
363
-# Custom target trying to clean the CMake generated files
364
-ADD_CUSTOM_TARGET ( distclean
365
-    COMMAND rm -f  {,src/,po/,docs/,data/}CMakeCache.txt
366
-    COMMAND rm -f  {,src/,po/,docs/,data/}cmake_install.cmake
367
-    COMMAND rm -f  {,src/,po/,docs/,data/}cmake_uninstall.cmake
368
-    COMMAND rm -f  {,src/,po/,docs/,data/}CPackConfig.cmake
369
-    COMMAND rm -f  {,src/,po/,docs/,data/}CPackSourceConfig.cmake
370
-    COMMAND rm -f  {,src/,po/,docs/,data/}install_manifest.txt
371
-    COMMAND rm -f  {,src/,po/,docs/,data/}progress.make
372
-    COMMAND rm -f  {,src/,po/,docs/,data/}rosegarden.spec
373
-    COMMAND rm -f  {,src/,po/,docs/,data/}Makefile
374
-    COMMAND rm -rf {,src/,po/,docs/,data/}CMakeFiles
375
-    COMMAND rm -rf {,src/,po/,docs/,data/}_CPack_Packages
376
-    COMMAND rm -rf RGbuild/*
377
-    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
378
-)
379
-ADD_DEPENDENCIES(distclean clean)
120
+INSTALL( FILES version.txt DESTINATION ${DATA_INSTALL_DIR}/rosegarden )
380 121
 
381 122
 # configure the RPM spec
382
-CONFIGURE_FILE(
383
-    "${CMAKE_SOURCE_DIR}/rosegarden.spec.in"
384
-    "${CMAKE_SOURCE_DIR}/rosegarden.spec"
385
-    IMMEDIATE @ONLY)
386
-
387
-# tarball target
388
-ADD_CUSTOM_TARGET ( tarball
389
-    COMMAND mkdir -p rosegarden-${VERSION}
390
-    COMMAND cp -r cmake_admin rosegarden-${VERSION}
391
-    COMMAND cp -r data rosegarden-${VERSION}
392
-    COMMAND cp -r docs rosegarden-${VERSION}
393
-    COMMAND cp -r po rosegarden-${VERSION}
394
-    COMMAND cp -r src rosegarden-${VERSION}
395
-    COMMAND cp CMakeLists.txt AUTHORS COPYING Doxyfile INSTALL README rosegarden.* TRANSLATORS rosegarden-${VERSION}
396
-    COMMAND tar -cj --exclude .svn --exclude gettext-0.10.35-kde -f rosegarden-${VERSION}.tar.bz2 rosegarden-${VERSION}
397
-    COMMAND rm -rf rosegarden-${VERSION}
398
-    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
399
-)
123
+CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/rosegarden.spec.in" "${CMAKE_SOURCE_DIR}/rosegarden.spec" IMMEDIATE @ONLY)

+ 399
- 0
CMakeLists.txt.orig View File

@@ -0,0 +1,399 @@
1
+# Rosegarden
2
+# A MIDI and audio sequencer and musical notation editor.
3
+#
4
+# This program is Copyright 2000-2008
5
+#     Guillaume Laurent   <glaurent@telegraph-road.org>,
6
+#     Chris Cannam        <cannam@all-day-breakfast.com>,
7
+#     Richard Bown        <richard.bown@ferventsoftware.com>
8
+#
9
+# The moral rights of Guillaume Laurent, Chris Cannam, and Richard
10
+# Bown to claim authorship of this work have been asserted.
11
+#
12
+# This file is Copyright 2006-2008
13
+#     Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
14
+#
15
+# Other copyrights also apply to some parts of this work.  Please
16
+# see the AUTHORS file and individual file headers for details.
17
+#
18
+# This program is free software; you can redistribute it and/or
19
+# modify it under the terms of the GNU General Public License as
20
+# published by the Free Software Foundation; either version 2 of the
21
+# License, or (at your option) any later version.  See the file
22
+# COPYING included with this distribution for more information.
23
+
24
+# The name of our project is "ROSEGARDEN". CMakeLists files in this project can
25
+# refer to the root source directory of the project as ${ROSEGARDEN_SOURCE_DIR} 
26
+# and to the root binary directory of the project as ${ROSEGARDEN_BINARY_DIR}
27
+PROJECT(ROSEGARDEN)
28
+
29
+# CMake supports KDE checks since this version number
30
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4.2)
31
+
32
+# Show full commands and messages. It generates a lot of console output.
33
+# It is necessary for Eclipse warning/error parser, 
34
+# but it can be enabled anyway with "make VERBOSE=1"
35
+SET(CMAKE_VERBOSE_MAKEFILE OFF)
36
+
37
+# Seems that relative paths break some scripts. Don't set it ON
38
+SET(CMAKE_USE_RELATIVE_PATHS OFF)
39
+
40
+# Rebuild the object files if the rules have changed, but not the actual source 
41
+# files or headers (e.g. if you changed the some compiler switches)
42
+SET(CMAKE_SKIP_RULE_DEPENDENCY OFF)
43
+
44
+# Misc settings
45
+SET(CMAKE_COLOR_MAKEFILE ON)
46
+SET(CMAKE_INCLUDE_CURRENT_DIR ON)
47
+SET(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
48
+
49
+# Additional CMake modules for 3rd party library checks reside here
50
+SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_admin")
51
+
52
+# Mark as advanced
53
+MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH 
54
+                 LIBRARY_OUTPUT_PATH
55
+		 CMAKE_BACKWARDS_COMPATIBILITY)
56
+
57
+# Rosegarden version string
58
+SET (VERSION_MAJOR "1")
59
+SET (VERSION_MINOR "7")
60
+SET (VERSION_PATCH "0")
61
+# comment out the next line for a public release
62
+#SET (VERSION_SUFFIX "svn")
63
+SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
64
+IF(VERSION_SUFFIX)
65
+   SET (VERSION "${VERSION}-${VERSION_SUFFIX}")
66
+ENDIF(VERSION_SUFFIX)
67
+ADD_DEFINITIONS(-D'VERSION="${VERSION}"')
68
+
69
+# User options
70
+OPTION(WANT_DEBUG   "Include debug support" OFF)
71
+OPTION(WANT_FULLDBG "Full debug support (BIG executables!)" OFF)
72
+OPTION(WANT_SOUND   "Include Sound support" ON)
73
+OPTION(WANT_JACK    "Include Jack (Jack Audio Connection Kit) support" ON)
74
+OPTION(WANT_DSSI    "Include DSSI support" ON)
75
+OPTION(WANT_LIRC    "Include LIRC (Linux Infrared Remote Control) support" OFF)
76
+OPTION(WANT_PCH     "Use precompiled headers" OFF)
77
+OPTION(WANT_TEST    "Perform unit tests" OFF)
78
+
79
+IF(WANT_TEST)
80
+    ENABLE_TESTING()
81
+ENDIF(WANT_TEST)
82
+
83
+IF(NOT WANT_SOUND)
84
+    SET(WANT_JACK OFF)
85
+    SET(WANT_DSSI OFF)
86
+    ADD_DEFINITIONS(-DNO_SOUND)
87
+ENDIF(NOT WANT_SOUND)
88
+
89
+# Check for KDE3
90
+FIND_PACKAGE(KDE3 REQUIRED QUIET)
91
+IF(QT_FOUND)
92
+    ADD_DEFINITIONS(${QT_DEFINITIONS})
93
+    MESSAGE(STATUS "Found Qt3 (version ${qt_version_str})")
94
+    #MESSAGE("QT_LIBRARIES: ${QT_LIBRARIES}")
95
+ELSE(QT_FOUND)
96
+    MESSAGE(STATUS_ERROR "Qt3 package not found--assuming TQt4")
97
+    SET(QT_INCLUDE_DIR "/usr/include/qt4")
98
+ENDIF(QT_FOUND)
99
+SET(QT_UIC_EXECUTABLE "/usr/bin/uic-tqt")
100
+SET(QT_MOC_EXECUTABLE "/usr/bin/tmoc")
101
+IF(KDE3_FOUND)
102
+    ADD_DEFINITIONS(${KDE3_DEFINITIONS})
103
+    #MESSAGE("KDE3PREFIX: ${KDE3PREFIX}")
104
+    KDE3_PRINT_RESULTS()
105
+    #MESSAGE("QT_AND_TDECORE_LIBS: ${QT_AND_TDECORE_LIBS}")
106
+ELSE(KDE3_FOUND)    
107
+    MESSAGE(FATAL_ERROR "KDE3 Not found")
108
+ENDIF(KDE3_FOUND)
109
+
110
+# Clear the flags set by FindKDE3 
111
+SET(CMAKE_CXX_FLAGS "-I/usr/include/tqt -include tqt.h -DTQT_THREAD_SUPPORT")
112
+MARK_AS_ADVANCED(KDE3_BUILD_TESTS
113
+                 KDE3_ENABLE_FINAL
114
+		 KDE3_DCOPIDL_EXECUTABLE
115
+		 KDE3_DCOPIDL2CPP_EXECUTABLE
116
+		 KDE3_INCLUDE_DIR
117
+		 KDE3_KCFGC_EXECUTABLE
118
+		 KDE3_TDECORE_LIBRARY
119
+		 KDECONFIG_EXECUTABLE )
120
+
121
+# Provide the KDE3 prefix as a default prefix (if the user has CMake 2.4.4)
122
+IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
123
+    SET(CMAKE_INSTALL_PREFIX ${KDE3PREFIX} CACHE PATH
124
+        "Install path prefix, prepended onto install directories." FORCE)
125
+ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 
126
+
127
+# Check for PKG-CONFIG
128
+FIND_PACKAGE(PkgConfig REQUIRED)
129
+IF(PKG_CONFIG_FOUND)
130
+    MESSAGE(STATUS "Program pkg-config found (${PKG_CONFIG_EXECUTABLE})")
131
+ELSE(PKG_CONFIG_FOUND)
132
+    MESSAGE(FATAL_ERROR "Program pkg-config not found")
133
+ENDIF(PKG_CONFIG_FOUND)
134
+
135
+# Initialize some variables
136
+SET(HAVE_XFT FALSE)
137
+SET(HAVE_ALSA FALSE)
138
+SET(HAVE_JACK FALSE)
139
+SET(HAVE_DSSI FALSE)
140
+SET(HAVE_LIBLO FALSE)
141
+SET(HAVE_LIBLRDF FALSE)
142
+SET(HAVE_LADSPA FALSE)
143
+SET(HAVE_LIRC FALSE)
144
+SET(HAVE_FFTW3F FALSE)
145
+
146
+# Check for Xft
147
+PKG_CHECK_MODULES(XFT xft>=2.1.0)
148
+IF(XFT_FOUND)
149
+    ADD_DEFINITIONS(-DHAVE_XFT)
150
+    SET(HAVE_XFT TRUE)
151
+    SET(XFT_LIBS ${XFT_LIBRARIES})
152
+    #MESSAGE("XFT_LIBS: ${XFT_LIBS}")
153
+    LIST(APPEND XFT_LIB_DIR ${XFT_LIBRARY_DIRS} ${XFT_LIBDIR})
154
+    #MESSAGE("XFT_LIB_DIR: ${XFT_LIB_DIR}")
155
+    LIST(APPEND XFT_INC_DIR ${XFT_INCLUDE_DIRS} ${XFT_INCLUDEDIR})
156
+    #MESSAGE("XFT_INC_DIR: ${XFT_INC_DIR}")    
157
+ENDIF(XFT_FOUND)
158
+
159
+IF(WANT_SOUND)
160
+
161
+    # Check for ALSA 1.0
162
+    PKG_CHECK_MODULES(ALSA REQUIRED alsa>=1.0)
163
+    IF(ALSA_FOUND)
164
+        SET(HAVE_ALSA TRUE)
165
+        ADD_DEFINITIONS(-DHAVE_ALSA)
166
+        SET(ALSA_LIBS ${ALSA_LIBRARIES})
167
+        #MESSAGE("ALSA_LIBS: ${ALSA_LIBS}")
168
+        LIST(APPEND ALSA_LIB_DIR ${ALSA_LIBRARY_DIRS} ${ALSA_LIBDIR} )
169
+        #MESSAGE("ALSA_LIB_DIR: ${ALSA_LIB_DIR}")
170
+        LIST(APPEND ALSA_INC_DIR ${ALSA_INCLUDE_DIRS} ${ALSA_INCLUDEDIR})
171
+        #MESSAGE("ALSA_INC_DIR: ${ALSA_INC_DIR}")
172
+    ELSE(ALSA_FOUND)
173
+        MESSAGE(FATAL_ERROR "Please install the required package. Aborting")
174
+    ENDIF(ALSA_FOUND)
175
+    
176
+    IF(WANT_JACK)
177
+        PKG_CHECK_MODULES(JACK jack>=0.77)
178
+        IF(JACK_FOUND)
179
+            ADD_DEFINITIONS(-DHAVE_LIBJACK)
180
+            SET(HAVE_JACK TRUE)
181
+            SET(JACK_LIBS ${JACK_LIBRARIES})
182
+            #MESSAGE("JACK_LIBS: ${JACK_LIBS}")
183
+            LIST(APPEND JACK_LIB_DIR ${JACK_LIBDIR} ${JACK_LIBRARY_DIRS})
184
+            #MESSAGE("JACK_LIB_DIR: ${JACK_LIB_DIR}")
185
+            LIST(APPEND JACK_INC_DIR ${JACK_INCLUDEDIR} ${JACK_INCLUDE_DIRS})
186
+            #MESSAGE("JACK_INC_DIR: ${JACK_INC_DIR}")
187
+        ENDIF(JACK_FOUND)
188
+    ENDIF(WANT_JACK)
189
+    
190
+    IF(WANT_DSSI)
191
+        PKG_CHECK_MODULES(DSSI dssi>=0.4)
192
+        IF(DSSI_FOUND)
193
+            ADD_DEFINITIONS(-DHAVE_DSSI)
194
+            SET(HAVE_DSSI TRUE)
195
+            LIST(APPEND DSSI_INC_DIR ${DSSI_INCLUDE_DIRS} ${DSSI_INCLUDEDIR})
196
+            #MESSAGE("DSSI_INC_DIR: ${DSSI_INC_DIR}")
197
+        ENDIF(DSSI_FOUND)
198
+    ENDIF(WANT_DSSI)
199
+    
200
+    PKG_CHECK_MODULES(LIBLO liblo>=0.7)
201
+    IF(LIBLO_FOUND)
202
+        ADD_DEFINITIONS(-DHAVE_LIBLO)
203
+        SET(HAVE_LIBLO TRUE)
204
+        SET(LIBLO_LIBS ${LIBLO_LIBRARIES})
205
+        #MESSAGE("LIBLO_LIBS: ${LIBLO_LIBS}")
206
+        LIST(APPEND LIBLO_LIB_DIR ${LIBLO_LIBDIR} ${LIBLO_LIBRARY_DIRS})
207
+        #MESSAGE("LIBLO_LIB_DIR: ${LIBLO_LIB_DIR}")
208
+        LIST(APPEND LIBLO_INC_DIR ${LIBLO_INCLUDEDIR} ${LIBLO_INCLUDE_DIRS})
209
+        #MESSAGE("LIBLO_INC_DIR: ${LIBLO_INC_DIR}")
210
+    ENDIF(LIBLO_FOUND)
211
+    
212
+    PKG_CHECK_MODULES(LRDF lrdf>=0.3)
213
+    IF(LRDF_FOUND)
214
+        SET(HAVE_LIBLRDF TRUE)
215
+        ADD_DEFINITIONS(-DHAVE_LIBLRDF)
216
+        SET(LRDF_LIBS ${LRDF_LIBRARIES})
217
+        #MESSAGE("LRDF_LIBS: ${LRDF_LIBS}")
218
+        LIST(APPEND LRDF_LIB_DIR ${LRDF_LIBDIR} ${LRDF_LIBRARY_DIRS})
219
+        #MESSAGE("LRDF_LIB_DIR: ${LRDF_LIB_DIR}")
220
+        LIST(APPEND LRDF_INC_DIR ${LRDF_INCLUDEDIR} ${LRDF_INCLUDE_DIRS})
221
+        #MESSAGE("LRDF_INC_DIR: ${LRDF_INC_DIR}")
222
+    ENDIF(LRDF_FOUND)
223
+
224
+    FIND_PACKAGE(LADSPA QUIET)
225
+    IF(LADSPA_FOUND)
226
+        SET(HAVE_LADSPA TRUE)
227
+        ADD_DEFINITIONS(-DHAVE_LADSPA)
228
+        SET(LADSPA_INC_DIR ${LADSPA_INCLUDE_DIR})
229
+        MESSAGE(STATUS "Found LADSPA (${LADSPA_INC_DIR})")
230
+    ENDIF(LADSPA_FOUND)
231
+    
232
+ENDIF(WANT_SOUND)
233
+
234
+PKG_CHECK_MODULES(FFTW3F REQUIRED fftw3f>=3.0.0)
235
+IF(FFTW3F_FOUND)
236
+    ADD_DEFINITIONS(-DHAVE_FFTW3F)
237
+    SET(HAVE_FFTW3F TRUE)
238
+    SET(FFTW3F_LIBS ${FFTW3F_LIBRARIES})
239
+    #MESSAGE("FFTW3F_LIBS: ${FFTW3F_LIBS}")
240
+    LIST(APPEND FFTW3F_LIB_DIR ${FFTW3F_LIBDIR} ${FFTW3F_LIBRARY_DIRS})
241
+    #MESSAGE("FFTW3F_LIB_DIR: ${FFTW3F_LIB_DIR}")
242
+    LIST(APPEND FFTW3F_INC_DIR ${FFTW3F_INCLUDEDIR} ${FFTW3F_INCLUDE_DIRS})
243
+    #MESSAGE("FFTW3F_INC_DIR: ${FFTW3F_INC_DIR}")
244
+ELSE(FFTW3F_FOUND)
245
+    MESSAGE(FATAL_ERROR "Please install the required package. Aborting")
246
+ENDIF(FFTW3F_FOUND)
247
+
248
+IF(WANT_LIRC)
249
+    FIND_PACKAGE(LIRC QUIET)
250
+    IF(LIRC_FOUND)
251
+        SET(HAVE_LIRC TRUE)
252
+        ADD_DEFINITIONS(-DHAVE_LIRC)
253
+        MESSAGE(STATUS "Found LIRC (${LIRC_LIBRARY})")
254
+        SET(LIRC_LIBS ${LIRC_LIBRARY})
255
+        SET(LIRC_INC_DIR ${LIRC_INCLUDE_DIR})
256
+        SET(LIRC_LIB_DIR ${LIRC_LIBRARY_DIR})
257
+        #MESSAGE("LIRC_LIBS: ${LIRC_LIBS}")
258
+        #MESSAGE("LIRC_LIB_DIR: ${LIRC_LIB_DIR}")
259
+        #MESSAGE("LIRC_INC_DIR: ${LIRC_INC_DIR}")    
260
+    ENDIF(LIRC_FOUND)
261
+ENDIF(WANT_LIRC)
262
+
263
+FIND_PACKAGE(MSGFMT REQUIRED)
264
+IF(MSGFMT_FOUND)
265
+    MESSAGE(STATUS "Program msgfmt found (${MSGFMT_EXECUTABLE})")
266
+ENDIF(MSGFMT_FOUND)
267
+
268
+FIND_PACKAGE(KDECONFIG)
269
+IF(KDECONFIG_EXECUTABLE)
270
+    MESSAGE(STATUS "Program kde-config found (${KDECONFIG_EXECUTABLE})")
271
+    #MESSAGE("KDE3PREFIX: ${KDE3PREFIX}")
272
+ENDIF(KDECONFIG_EXECUTABLE)
273
+
274
+FIND_PACKAGE(MEINPROC REQUIRED)
275
+IF(MEINPROC_FOUND)
276
+    MESSAGE(STATUS "Program meinproc found (${MEINPROC_EXECUTABLE})")
277
+ENDIF(MEINPROC_FOUND)
278
+
279
+# Check GCC for PCH support
280
+SET(USE_PCH FALSE)
281
+IF(WANT_PCH)
282
+    FIND_PACKAGE(PCHSupport)
283
+    IF(PCHSupport_FOUND)
284
+        SET(USE_PCH TRUE)
285
+        ADD_DEFINITIONS(-DUSE_PCH)
286
+        MESSAGE(STATUS "Enabling precompiled headers for GCC ${gcc_compiler_version}") 
287
+    ENDIF(PCHSupport_FOUND)
288
+ENDIF(WANT_PCH)
289
+
290
+# Check PTHREAD_MUTEX_RECURSIVE
291
+INCLUDE(CheckCSourceCompiles)
292
+CHECK_C_SOURCE_COMPILES(
293
+    "#include <pthread.h>
294
+     int main(int argc, char **argv) {
295
+         pthread_mutexattr_t attr;
296
+         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
297
+         return 0;
298
+     }" PTHREAD_HAS_MUTEX_RECURSIVE)
299
+IF(PTHREAD_HAS_MUTEX_RECURSIVE)
300
+    ADD_DEFINITIONS(-DHAVE_PTHREAD_MUTEX_RECURSIVE)
301
+ENDIF(PTHREAD_HAS_MUTEX_RECURSIVE)
302
+# End of PTHREAD_MUTEX_RECURSIVE Test
303
+
304
+SET(CMAKE_CXX_FLAGS_RELEASE         "-O2 -w -fexceptions -DNDEBUG -include tqt.h")
305
+SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO  "-O2 -g -Wall -fexceptions -DDEBUG -include tqt.h")
306
+SET(CMAKE_CXX_FLAGS_DEBUG           "-O0 -g3 -Wall -fexceptions -DDEBUG -include tqt.h")
307
+
308
+MESSAGE(STATUS "Rosegarden ${VERSION} will be built for install into ${CMAKE_INSTALL_PREFIX}")
309
+
310
+IF(WANT_DEBUG)
311
+    IF(WANT_FULLDBG)
312
+        MESSAGE(STATUS "Configured to compile including full debug information in the executables")
313
+        SET(CMAKE_BUILD_TYPE Debug CACHE STRING
314
+            "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
315
+    ELSE(WANT_FULLDBG)
316
+        MESSAGE(STATUS "Configured to compile including debug information in the executables")
317
+        SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
318
+            "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
319
+    ENDIF(WANT_FULLDBG)
320
+ELSE(WANT_DEBUG)
321
+    MESSAGE(STATUS "Configured to compile for release without debug information")
322
+    SET(CMAKE_BUILD_TYPE Release CACHE STRING
323
+        "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
324
+ENDIF(WANT_DEBUG)
325
+MARK_AS_ADVANCED(CMAKE_BUILD_TYPE)
326
+
327
+# Warn the user if important libraries are missing
328
+INCLUDE(UserWarnings)
329
+
330
+# Recurse into the "src" subdirectory. This does not actually
331
+# cause another cmake executable to run. The same process will walk through
332
+# the project's entire directory structure.
333
+# Output directory will be "RGbuild/"
334
+ADD_SUBDIRECTORY(src RGbuild)
335
+
336
+# Build and install the translations directory
337
+ADD_SUBDIRECTORY(po RGbuild/po)
338
+
339
+# Build and install the documentation directory
340
+ADD_SUBDIRECTORY(docs RGbuild/docs)
341
+
342
+# Install data files
343
+ADD_SUBDIRECTORY(data RGbuild/data)
344
+
345
+# install some documents...
346
+# INSTALL( FILES AUTHORS COPYING README TRANSLATORS INSTALL rosegarden.lsm
347
+#         DESTINATION share/doc/rosegarden-${VERSION} )
348
+
349
+# create and install the version file
350
+FILE(WRITE version.txt "${VERSION}\n")
351
+INSTALL( FILES version.txt
352
+         DESTINATION ${KDE3DATADIR}/rosegarden )
353
+
354
+# uninstall custom target
355
+CONFIGURE_FILE(
356
+    "${CMAKE_SOURCE_DIR}/cmake_admin/cmake_uninstall.cmake.in"
357
+    "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
358
+    IMMEDIATE @ONLY)
359
+
360
+ADD_CUSTOM_TARGET(uninstall
361
+    "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
362
+
363
+# Custom target trying to clean the CMake generated files
364
+ADD_CUSTOM_TARGET ( distclean
365
+    COMMAND rm -f  {,src/,po/,docs/,data/}CMakeCache.txt
366
+    COMMAND rm -f  {,src/,po/,docs/,data/}cmake_install.cmake
367
+    COMMAND rm -f  {,src/,po/,docs/,data/}cmake_uninstall.cmake
368
+    COMMAND rm -f  {,src/,po/,docs/,data/}CPackConfig.cmake
369
+    COMMAND rm -f  {,src/,po/,docs/,data/}CPackSourceConfig.cmake
370
+    COMMAND rm -f  {,src/,po/,docs/,data/}install_manifest.txt
371
+    COMMAND rm -f  {,src/,po/,docs/,data/}progress.make
372
+    COMMAND rm -f  {,src/,po/,docs/,data/}rosegarden.spec
373
+    COMMAND rm -f  {,src/,po/,docs/,data/}Makefile
374
+    COMMAND rm -rf {,src/,po/,docs/,data/}CMakeFiles
375
+    COMMAND rm -rf {,src/,po/,docs/,data/}_CPack_Packages
376
+    COMMAND rm -rf RGbuild/*
377
+    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
378
+)
379
+ADD_DEPENDENCIES(distclean clean)
380
+
381
+# configure the RPM spec
382
+CONFIGURE_FILE(
383
+    "${CMAKE_SOURCE_DIR}/rosegarden.spec.in"
384
+    "${CMAKE_SOURCE_DIR}/rosegarden.spec"
385
+    IMMEDIATE @ONLY)
386
+
387
+# tarball target
388
+ADD_CUSTOM_TARGET ( tarball
389
+    COMMAND mkdir -p rosegarden-${VERSION}
390
+    COMMAND cp -r cmake_admin rosegarden-${VERSION}
391
+    COMMAND cp -r data rosegarden-${VERSION}
392
+    COMMAND cp -r docs rosegarden-${VERSION}
393
+    COMMAND cp -r po rosegarden-${VERSION}
394
+    COMMAND cp -r src rosegarden-${VERSION}
395
+    COMMAND cp CMakeLists.txt AUTHORS COPYING Doxyfile INSTALL README rosegarden.* TRANSLATORS rosegarden-${VERSION}
396
+    COMMAND tar -cj --exclude .svn --exclude gettext-0.10.35-kde -f rosegarden-${VERSION}.tar.bz2 rosegarden-${VERSION}
397
+    COMMAND rm -rf rosegarden-${VERSION}
398
+    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
399
+)

+ 217
- 0
ConfigureChecks.cmake View File

@@ -0,0 +1,217 @@
1
+#################################################
2
+#
3
+#  (C) 2011 Timothy Pearson
4
+#  kb9vqf (AT) pearsoncomputing.net
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE )
13
+  find_program( MSGFMT_EXECUTABLE msgfmt )
14
+  if( NOT MSGFMT_EXECUTABLE )
15
+    tde_message_fatal( "msgfmt program is required, but was not found on your system" )
16
+  endif( )
17
+endif( )
18
+
19
+# Initialize some variables
20
+SET(HAVE_XFT FALSE)
21
+SET(HAVE_ALSA FALSE)
22
+SET(HAVE_JACK FALSE)
23
+SET(HAVE_DSSI FALSE)
24
+SET(HAVE_LIBLO FALSE)
25
+SET(HAVE_LIBLRDF FALSE)
26
+SET(HAVE_LADSPA FALSE)
27
+SET(HAVE_LIRC FALSE)
28
+SET(HAVE_FFTW3F FALSE)
29
+
30
+# Check for Xft
31
+PKG_CHECK_MODULES(XFT xft>=2.1.0)
32
+IF(XFT_FOUND)
33
+    ADD_DEFINITIONS(-DHAVE_XFT)
34
+    SET(HAVE_XFT TRUE)
35
+    SET(XFT_LIBS ${XFT_LIBRARIES})
36
+    #MESSAGE("XFT_LIBS: ${XFT_LIBS}")
37
+    LIST(APPEND XFT_LIB_DIR ${XFT_LIBRARY_DIRS} ${XFT_LIBDIR})
38
+    #MESSAGE("XFT_LIB_DIR: ${XFT_LIB_DIR}")
39
+    LIST(APPEND XFT_INC_DIR ${XFT_INCLUDE_DIRS} ${XFT_INCLUDEDIR})
40
+    #MESSAGE("XFT_INC_DIR: ${XFT_INC_DIR}")
41
+ENDIF(XFT_FOUND)
42
+
43
+IF(WANT_SOUND)
44
+
45
+    # Check for ALSA 1.0
46
+    PKG_CHECK_MODULES(ALSA REQUIRED alsa>=1.0)
47
+    IF(ALSA_FOUND)
48
+        SET(HAVE_ALSA TRUE)
49
+        ADD_DEFINITIONS(-DHAVE_ALSA)
50
+        SET(ALSA_LIBS ${ALSA_LIBRARIES})
51
+        #MESSAGE("ALSA_LIBS: ${ALSA_LIBS}")
52
+        LIST(APPEND ALSA_LIB_DIR ${ALSA_LIBRARY_DIRS} ${ALSA_LIBDIR} )
53
+        #MESSAGE("ALSA_LIB_DIR: ${ALSA_LIB_DIR}")
54
+        LIST(APPEND ALSA_INC_DIR ${ALSA_INCLUDE_DIRS} ${ALSA_INCLUDEDIR})
55
+        #MESSAGE("ALSA_INC_DIR: ${ALSA_INC_DIR}")
56
+    ELSE(ALSA_FOUND)
57
+        MESSAGE(FATAL_ERROR "Please install the required package. Aborting")
58
+    ENDIF(ALSA_FOUND)
59
+
60
+    IF(WANT_JACK)
61
+        PKG_CHECK_MODULES(JACK jack>=0.77)
62
+        IF(JACK_FOUND)
63
+            ADD_DEFINITIONS(-DHAVE_LIBJACK)
64
+            SET(HAVE_JACK TRUE)
65
+            SET(JACK_LIBS ${JACK_LIBRARIES})
66
+            #MESSAGE("JACK_LIBS: ${JACK_LIBS}")
67
+            LIST(APPEND JACK_LIB_DIR ${JACK_LIBDIR} ${JACK_LIBRARY_DIRS})
68
+            #MESSAGE("JACK_LIB_DIR: ${JACK_LIB_DIR}")
69
+            LIST(APPEND JACK_INC_DIR ${JACK_INCLUDEDIR} ${JACK_INCLUDE_DIRS})
70
+            #MESSAGE("JACK_INC_DIR: ${JACK_INC_DIR}")
71
+        ENDIF(JACK_FOUND)
72
+    ENDIF(WANT_JACK)
73
+
74
+    IF(WANT_DSSI)
75
+        PKG_CHECK_MODULES(DSSI dssi>=0.4)
76
+        IF(DSSI_FOUND)
77
+            ADD_DEFINITIONS(-DHAVE_DSSI)
78
+            SET(HAVE_DSSI TRUE)
79
+            LIST(APPEND DSSI_INC_DIR ${DSSI_INCLUDE_DIRS} ${DSSI_INCLUDEDIR})
80
+            #MESSAGE("DSSI_INC_DIR: ${DSSI_INC_DIR}")
81
+        ENDIF(DSSI_FOUND)
82
+    ENDIF(WANT_DSSI)
83
+
84
+    PKG_CHECK_MODULES(LIBLO liblo>=0.7)
85
+    IF(LIBLO_FOUND)
86
+        ADD_DEFINITIONS(-DHAVE_LIBLO)
87
+        SET(HAVE_LIBLO TRUE)
88
+        SET(LIBLO_LIBS ${LIBLO_LIBRARIES})
89
+        #MESSAGE("LIBLO_LIBS: ${LIBLO_LIBS}")
90
+        LIST(APPEND LIBLO_LIB_DIR ${LIBLO_LIBDIR} ${LIBLO_LIBRARY_DIRS})
91
+        #MESSAGE("LIBLO_LIB_DIR: ${LIBLO_LIB_DIR}")
92
+        LIST(APPEND LIBLO_INC_DIR ${LIBLO_INCLUDEDIR} ${LIBLO_INCLUDE_DIRS})
93
+        #MESSAGE("LIBLO_INC_DIR: ${LIBLO_INC_DIR}")
94
+    ENDIF(LIBLO_FOUND)
95
+
96
+    PKG_CHECK_MODULES(LRDF lrdf>=0.3)
97
+    IF(LRDF_FOUND)
98
+        SET(HAVE_LIBLRDF TRUE)
99
+        ADD_DEFINITIONS(-DHAVE_LIBLRDF)
100
+        SET(LRDF_LIBS ${LRDF_LIBRARIES})
101
+        #MESSAGE("LRDF_LIBS: ${LRDF_LIBS}")
102
+        LIST(APPEND LRDF_LIB_DIR ${LRDF_LIBDIR} ${LRDF_LIBRARY_DIRS})
103
+        #MESSAGE("LRDF_LIB_DIR: ${LRDF_LIB_DIR}")
104
+        LIST(APPEND LRDF_INC_DIR ${LRDF_INCLUDEDIR} ${LRDF_INCLUDE_DIRS})
105
+        #MESSAGE("LRDF_INC_DIR: ${LRDF_INC_DIR}")
106
+    ENDIF(LRDF_FOUND)
107
+
108
+    FIND_PACKAGE(LADSPA QUIET)
109
+    IF(LADSPA_FOUND)
110
+        SET(HAVE_LADSPA TRUE)
111
+        ADD_DEFINITIONS(-DHAVE_LADSPA)
112
+        SET(LADSPA_INC_DIR ${LADSPA_INCLUDE_DIR})
113
+        MESSAGE(STATUS "Found LADSPA (${LADSPA_INC_DIR})")
114
+    ENDIF(LADSPA_FOUND)
115
+
116
+ENDIF(WANT_SOUND)
117
+
118
+PKG_CHECK_MODULES(FFTW3F REQUIRED fftw3f>=3.0.0)
119
+IF(FFTW3F_FOUND)
120
+    ADD_DEFINITIONS(-DHAVE_FFTW3F)
121
+    SET(HAVE_FFTW3F TRUE)
122
+    SET(FFTW3F_LIBS ${FFTW3F_LIBRARIES})
123
+    #MESSAGE("FFTW3F_LIBS: ${FFTW3F_LIBS}")
124
+    LIST(APPEND FFTW3F_LIB_DIR ${FFTW3F_LIBDIR} ${FFTW3F_LIBRARY_DIRS})
125
+    #MESSAGE("FFTW3F_LIB_DIR: ${FFTW3F_LIB_DIR}")
126
+    LIST(APPEND FFTW3F_INC_DIR ${FFTW3F_INCLUDEDIR} ${FFTW3F_INCLUDE_DIRS})
127
+    #MESSAGE("FFTW3F_INC_DIR: ${FFTW3F_INC_DIR}")
128
+ELSE(FFTW3F_FOUND)
129
+    MESSAGE(FATAL_ERROR "Please install the required package. Aborting")
130
+ENDIF(FFTW3F_FOUND)
131
+
132
+IF(WANT_LIRC)
133
+    FIND_PACKAGE(LIRC QUIET)
134
+    IF(LIRC_FOUND)
135
+        SET(HAVE_LIRC TRUE)
136
+        ADD_DEFINITIONS(-DHAVE_LIRC)
137
+        MESSAGE(STATUS "Found LIRC (${LIRC_LIBRARY})")
138
+        SET(LIRC_LIBS ${LIRC_LIBRARY})
139
+        SET(LIRC_INC_DIR ${LIRC_INCLUDE_DIR})
140
+        SET(LIRC_LIB_DIR ${LIRC_LIBRARY_DIR})
141
+        #MESSAGE("LIRC_LIBS: ${LIRC_LIBS}")
142
+        #MESSAGE("LIRC_LIB_DIR: ${LIRC_LIB_DIR}")
143
+        #MESSAGE("LIRC_INC_DIR: ${LIRC_INC_DIR}")
144
+    ENDIF(LIRC_FOUND)
145
+ENDIF(WANT_LIRC)
146
+
147
+FIND_PACKAGE(KDECONFIG)
148
+IF(KDECONFIG_EXECUTABLE)
149
+    MESSAGE(STATUS "Program kde-config found (${KDECONFIG_EXECUTABLE})")
150
+    #MESSAGE("KDE3PREFIX: ${KDE3PREFIX}")
151
+ENDIF(KDECONFIG_EXECUTABLE)
152
+
153
+FIND_PACKAGE(MEINPROC REQUIRED)
154
+IF(MEINPROC_FOUND)
155
+    MESSAGE(STATUS "Program meinproc found (${MEINPROC_EXECUTABLE})")
156
+ENDIF(MEINPROC_FOUND)
157
+
158
+# Check GCC for PCH support
159
+SET(USE_PCH FALSE)
160
+IF(WANT_PCH)
161
+    FIND_PACKAGE(PCHSupport)
162
+    IF(PCHSupport_FOUND)
163
+        SET(USE_PCH TRUE)
164
+        ADD_DEFINITIONS(-DUSE_PCH)
165
+        MESSAGE(STATUS "Enabling precompiled headers for GCC ${gcc_compiler_version}")
166
+    ENDIF(PCHSupport_FOUND)
167
+ENDIF(WANT_PCH)
168
+
169
+# Check PTHREAD_MUTEX_RECURSIVE
170
+INCLUDE(CheckCSourceCompiles)
171
+CHECK_C_SOURCE_COMPILES(
172
+    "#include <pthread.h>
173
+     int main(int argc, char **argv) {
174
+         pthread_mutexattr_t attr;
175
+         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
176
+         return 0;
177
+     }" PTHREAD_HAS_MUTEX_RECURSIVE)
178
+IF(PTHREAD_HAS_MUTEX_RECURSIVE)
179
+    ADD_DEFINITIONS(-DHAVE_PTHREAD_MUTEX_RECURSIVE)
180
+ENDIF(PTHREAD_HAS_MUTEX_RECURSIVE)
181
+# End of PTHREAD_MUTEX_RECURSIVE Test
182
+
183
+SET(CMAKE_CXX_FLAGS_RELEASE         "-O2 -w -fexceptions -DNDEBUG -include tqt.h")
184
+SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO  "-O2 -g -Wall -fexceptions -DDEBUG -include tqt.h")
185
+SET(CMAKE_CXX_FLAGS_DEBUG           "-O0 -g3 -Wall -fexceptions -DDEBUG -include tqt.h")
186
+
187
+MESSAGE(STATUS "Rosegarden ${VERSION} will be built for install into ${CMAKE_INSTALL_PREFIX}")
188
+
189
+IF(WANT_DEBUG)
190
+    IF(WANT_FULLDBG)
191
+        MESSAGE(STATUS "Configured to compile including full debug information in the executables")
192
+        SET(CMAKE_BUILD_TYPE Debug CACHE STRING
193
+            "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
194
+    ELSE(WANT_FULLDBG)
195
+        MESSAGE(STATUS "Configured to compile including debug information in the executables")
196
+        SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
197
+            "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
198
+    ENDIF(WANT_FULLDBG)
199
+ELSE(WANT_DEBUG)
200
+    MESSAGE(STATUS "Configured to compile for release without debug information")
201
+    SET(CMAKE_BUILD_TYPE Release CACHE STRING
202
+        "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
203
+ENDIF(WANT_DEBUG)
204
+MARK_AS_ADVANCED(CMAKE_BUILD_TYPE)
205
+
206
+check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY )
207
+check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
208
+
209
+check_include_file( stdint.h HAVE_STDINT_H )
210
+check_include_file( systems.h HAVE_SYSTEMS_H )
211
+check_include_file( linux/inotify.h HAVE_INOTIFY )
212
+
213
+check_function_exists( statvfs HAVE_STATVFS )
214
+
215
+# common required stuff
216
+find_package( TQt )
217
+find_package( TDE )

+ 5
- 0
config.h.cmake View File

@@ -0,0 +1,5 @@
1
+#cmakedefine SIZEOF_INT @SIZEOF_INT@
2
+#cmakedefine SIZEOF_LONG @SIZEOF_LONG@
3
+#cmakedefine HAVE_STDINT_H 1
4
+#cmakedefine HAVE_SYSTEMS_H 1
5
+#cmakedefine HAVE_STATVFS 1

+ 8
- 8
data/CMakeLists.txt View File

@@ -1,9 +1,9 @@
1 1
 # Data directory
2 2
 
3
-SET(DATADIR ${KDE3DATADIR}/rosegarden)
4
-SET(ICONDIR ${KDE3ICONDIR})
5
-SET(MIMEDIR ${KDE3MIMEDIR}/audio)
6
-SET(MENUDIR ${KDE3MENUDIR})
3
+SET(DATADIR ${DATA_INSTALL_DIR}/rosegarden)
4
+SET(ICONDIR ${ICON_INSTALL_DIR})
5
+SET(MIMEDIR ${MIME_INSTALL_DIR}/audio)
6
+SET(MENUDIR ${XDG_MENU_INSTALL_DIR})
7 7
 
8 8
 # Guitar chord files
9 9
 FILE(GLOB CHORD_FILES chords/*.xml)
@@ -80,7 +80,7 @@ INSTALL(FILES ${PIXMAP_FILES} DESTINATION ${DATADIR}/pixmaps/toolbar)
80 80
 FILE(GLOB PIXMAP_FILES pixmaps/transport/*.xpm pixmaps/transport/*.png)
81 81
 INSTALL(FILES ${PIXMAP_FILES} DESTINATION ${DATADIR}/pixmaps/transport)
82 82
 
83
-# Splash 
83
+# Splash
84 84
 INSTALL(FILES pixmaps/splash.png DESTINATION ${DATADIR}/pixmaps)
85 85
 
86 86
 # Examples
@@ -114,12 +114,12 @@ SET(EXAMPLE_FILES
114 114
     examples/vivaldi-cs3mv2.rg
115 115
     examples/vivaldi_op44_11_1.rg )
116 116
 
117
-INSTALL(FILES ${EXAMPLE_FILES} DESTINATION ${DATADIR}/examples) 
117
+INSTALL(FILES ${EXAMPLE_FILES} DESTINATION ${DATADIR}/examples)
118 118
 INSTALL(FILES examples/autoload.rg DESTINATION ${DATADIR})
119 119
 
120
-# Library 
120
+# Library
121 121
 FILE(GLOB RGD_FILES library/*.rgd)
122 122
 INSTALL(FILES ${RGD_FILES} DESTINATION ${DATADIR}/library)
123 123
 
124 124
 # KDE LIRC Profile
125
-INSTALL(FILES profile/rosegarden.profile.xml DESTINATION ${KDE3DATADIR}/profiles)
125
+INSTALL(FILES profile/rosegarden.profile.xml DESTINATION ${DATA_INSTALL_DIR}/profiles)

+ 12
- 0
doc/CMakeLists.txt View File

@@ -0,0 +1,12 @@
1
+#################################################
2
+#
3
+#  (C) 2010-2011 Serghei Amelian
4
+#  serghei (DOT) amelian (AT) gmail.com
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+tde_auto_add_subdirectories()

docs/de/.gitignore → doc/de/.gitignore View File


+ 12
- 0
doc/en/CMakeLists.txt View File

@@ -0,0 +1,12 @@
1
+#################################################
2
+#
3
+#  (C) 2011 Timothy Pearson
4
+#  kb9vqf (AT) pearsoncomputing.net
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+tde_create_handbook( DESTINATION rosegarden )

docs/en/headers-and-unicode-lyrics.png → doc/en/headers-and-unicode-lyrics.png View File


docs/en/index.docbook → doc/en/index.docbook View File


docs/en/rg-audiofilemanager.png → doc/en/rg-audiofilemanager.png View File


docs/en/rg-audiomixer.png → doc/en/rg-audiomixer.png View File


docs/en/rg-bankeditor.png → doc/en/rg-bankeditor.png View File


docs/en/rg-button-bar-time.png → doc/en/rg-button-bar-time.png View File


docs/en/rg-button-from-end.png → doc/en/rg-button-from-end.png View File


docs/en/rg-clefdialog.png → doc/en/rg-clefdialog.png View File


docs/en/rg-coda.png → doc/en/rg-coda.png View File


docs/en/rg-colours.png → doc/en/rg-colours.png View File


docs/en/rg-cursors.png → doc/en/rg-cursors.png View File


docs/en/rg-devicemanager.png → doc/en/rg-devicemanager.png View File


docs/en/rg-eraser.png → doc/en/rg-eraser.png View File


docs/en/rg-eventfilter.png → doc/en/rg-eventfilter.png View File


docs/en/rg-eventlisteditor.png → doc/en/rg-eventlisteditor.png View File


docs/en/rg-gridquantizer.png → doc/en/rg-gridquantizer.png View File


docs/en/rg-guitarchorddialog.png → doc/en/rg-guitarchorddialog.png View File


docs/en/rg-guitarchordeditordialog.png → doc/en/rg-guitarchordeditordialog.png View File


docs/en/rg-ipb-audio.png → doc/en/rg-ipb-audio.png View File


docs/en/rg-ipb-midi.png → doc/en/rg-ipb-midi.png View File


docs/en/rg-ipb-synth.png → doc/en/rg-ipb-synth.png View File


docs/en/rg-keysigdialog.png → doc/en/rg-keysigdialog.png View File


docs/en/rg-loadpreset.png → doc/en/rg-loadpreset.png View File


docs/en/rg-mainwindow.png → doc/en/rg-mainwindow.png View File


docs/en/rg-markerloop.png → doc/en/rg-markerloop.png View File


docs/en/rg-matrixview.png → doc/en/rg-matrixview.png View File


docs/en/rg-metronome.png → doc/en/rg-metronome.png View File


docs/en/rg-midifilter.png → doc/en/rg-midifilter.png View File


docs/en/rg-midimixer.png → doc/en/rg-midimixer.png View File


docs/en/rg-move.png → doc/en/rg-move.png View File


docs/en/rg-notation-toolbars.png → doc/en/rg-notation-toolbars.png View File


docs/en/rg-notationquantizer.png → doc/en/rg-notationquantizer.png View File


docs/en/rg-notationtools.png → doc/en/rg-notationtools.png View File


docs/en/rg-notationview-multipage.png → doc/en/rg-notationview-multipage.png View File


docs/en/rg-notationview.png → doc/en/rg-notationview.png View File


docs/en/rg-pastedialog.png → doc/en/rg-pastedialog.png View File


docs/en/rg-pencil.png → doc/en/rg-pencil.png View File


docs/en/rg-percussionmatrix.png → doc/en/rg-percussionmatrix.png View File


docs/en/rg-plugin-dialog.png → doc/en/rg-plugin-dialog.png View File


docs/en/rg-pluginbuttons.png → doc/en/rg-pluginbuttons.png View File


docs/en/rg-plugineditorbutton.png → doc/en/rg-plugineditorbutton.png View File


docs/en/rg-quickmarker.png → doc/en/rg-quickmarker.png View File


docs/en/rg-rawnoteruler.png → doc/en/rg-rawnoteruler.png View File


docs/en/rg-resize.png → doc/en/rg-resize.png View File


docs/en/rg-segmentparameterbox.png → doc/en/rg-segmentparameterbox.png View File


docs/en/rg-segno.png → doc/en/rg-segno.png View File


docs/en/rg-select.png → doc/en/rg-select.png View File


docs/en/rg-split.png → doc/en/rg-split.png View File


docs/en/rg-synthpluginbuttons.png → doc/en/rg-synthpluginbuttons.png View File


docs/en/rg-tempodialog.png → doc/en/rg-tempodialog.png View File


docs/en/rg-temporuler.png → doc/en/rg-temporuler.png View File


docs/en/rg-text-cursor.png → doc/en/rg-text-cursor.png View File


docs/en/rg-textdialog.png → doc/en/rg-textdialog.png View File


docs/en/rg-timesigdialog.png → doc/en/rg-timesigdialog.png View File


docs/en/rg-trackbutton-instrumentmenu.png → doc/en/rg-trackbutton-instrumentmenu.png View File


docs/en/rg-trackbutton-instruments.png → doc/en/rg-trackbutton-instruments.png View File


docs/en/rg-trackbutton-labels.png → doc/en/rg-trackbutton-labels.png View File


docs/en/rg-trackbuttons.png → doc/en/rg-trackbuttons.png View File


docs/en/rg-trackeditor.png → doc/en/rg-trackeditor.png View File


docs/en/rg-trackparameterbox.png → doc/en/rg-trackparameterbox.png View File


docs/en/rg-transport.png → doc/en/rg-transport.png View File


docs/en/rg-triggersegment.png → doc/en/rg-triggersegment.png View File


docs/en/rg-tupletdialog.png → doc/en/rg-tupletdialog.png View File


docs/en/rg-useornament.png → doc/en/rg-useornament.png View File


docs/en/tips → doc/en/tips View File


docs/en/transpose-by-interval.png → doc/en/transpose-by-interval.png View File


+ 12
- 0
doc/es/CMakeLists.txt View File

@@ -0,0 +1,12 @@
1
+#################################################
2
+#
3
+#  (C) 2011 Timothy Pearson
4
+#  kb9vqf (AT) pearsoncomputing.net
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+tde_create_handbook( DESTINATION rosegarden )

docs/es/index.docbook → doc/es/index.docbook View File


+ 12
- 0
doc/ja/CMakeLists.txt View File

@@ -0,0 +1,12 @@
1
+#################################################
2
+#
3
+#  (C) 2011 Timothy Pearson
4
+#  kb9vqf (AT) pearsoncomputing.net
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+tde_create_handbook( DESTINATION rosegarden )

docs/ja/index.docbook → doc/ja/index.docbook View File


+ 12
- 0
doc/sv/CMakeLists.txt View File

@@ -0,0 +1,12 @@
1
+#################################################
2
+#
3
+#  (C) 2011 Timothy Pearson
4
+#  kb9vqf (AT) pearsoncomputing.net
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+tde_create_handbook( DESTINATION rosegarden )

docs/sv/index.docbook → doc/sv/index.docbook View File


docs/sv/rg-audiofilemanager.png → doc/sv/rg-audiofilemanager.png View File


docs/sv/rg-audiomixer.png → doc/sv/rg-audiomixer.png View File


docs/sv/rg-bankeditor.png → doc/sv/rg-bankeditor.png View File


docs/sv/rg-clefdialog.png → doc/sv/rg-clefdialog.png View File


docs/sv/rg-colours.png → doc/sv/rg-colours.png View File


docs/sv/rg-devicemanager.png → doc/sv/rg-devicemanager.png View File


docs/sv/rg-eventlisteditor.png → doc/sv/rg-eventlisteditor.png View File


docs/sv/rg-gridquantizer.png → doc/sv/rg-gridquantizer.png View File


docs/sv/rg-ipb-audio.png → doc/sv/rg-ipb-audio.png View File


docs/sv/rg-ipb-midi.png → doc/sv/rg-ipb-midi.png View File


docs/sv/rg-ipb-synth.png → doc/sv/rg-ipb-synth.png View File


docs/sv/rg-keysigdialog.png → doc/sv/rg-keysigdialog.png View File


docs/sv/rg-mainwindow.png → doc/sv/rg-mainwindow.png View File


docs/sv/rg-matrixview.png → doc/sv/rg-matrixview.png View File


docs/sv/rg-metronome.png → doc/sv/rg-metronome.png View File


docs/sv/rg-midifilter.png → doc/sv/rg-midifilter.png View File


docs/sv/rg-midimixer.png → doc/sv/rg-midimixer.png View File


docs/sv/rg-notationquantizer.png → doc/sv/rg-notationquantizer.png View File


docs/sv/rg-notationview-multipage.png → doc/sv/rg-notationview-multipage.png View File


docs/sv/rg-notationview.png → doc/sv/rg-notationview.png View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save