~ubuntu-branches/ubuntu/raring/muse/raring-proposed

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-11-22 01:16:59 UTC
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: package-import@ubuntu.com-20121122011659-a2fwbf33ceqe1s0t
Tags: upstream-2.1~rc1
ImportĀ upstreamĀ versionĀ 2.1~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
 
77
77
# The MusE version number.
78
78
SET(MusE_VERSION_MAJOR 2)
79
 
SET(MusE_VERSION_MINOR 0)
80
 
SET(MusE_VERSION_PATCH 1)
81
 
SET(MusE_VERSION       "2.0.1")
82
 
SET(MusE_VERSION_FULL  "2.0.1")
83
 
SET(MusE_INSTALL_NAME  "muse-2.0")
 
79
SET(MusE_VERSION_MINOR 1)
 
80
SET(MusE_VERSION_PATCH 0)
 
81
SET(MusE_VERSION       "2.1rc1")
 
82
SET(MusE_VERSION_FULL  "2.1rc1")
 
83
SET(MusE_INSTALL_NAME  "muse-2.1")
84
84
SET(MusE_EXEC_NAME     "muse2")
85
85
 
86
86
## The directory where we will install the shared components:
115
115
# Do we need this? - Orcan:
116
116
# include ( ${PROJECT_SOURCE_DIR}/cmake/WrapMacros.cmake)
117
117
 
118
 
option ( ENABLE_LASH        "enable LASH Audio Session Handler"                              ON)
119
 
option ( ENABLE_OSC         "enable Open Sound Control (DSSI also recommended)"              ON)   
120
 
option ( ENABLE_DSSI        "enable Disposable Soft Synth Interface (OSC also recommended)"  ON)
121
 
option ( ENABLE_VST         "enable VST/win support (deprecated)"                            OFF)
122
 
option ( ENABLE_FLUID       "enable fluidsynth softsynth plugins"                            ON)
123
 
option ( ENABLE_EXPERIMENTAL "enable building experimental features"                         OFF)
124
 
option ( ENABLE_PYTHON      "enable Python control support"                                  OFF)
 
118
option ( ENABLE_LASH        "enable LASH Audio Session Handler (or LADISH compatibility layer)"     ON)
 
119
option ( ENABLE_OSC         "enable Lightweight Open Sound Control (liblo) (DSSI also recommended)"  ON)   
 
120
option ( ENABLE_DSSI        "enable Disposable Soft Synth Interface (dssi) (OSC also recommended)" ON)
 
121
option ( ENABLE_VST         "enable VST/win support (deprecated)"                                OFF)
 
122
option ( ENABLE_FLUID       "enable fluidsynth softsynth plugins"                                ON)
 
123
option ( ENABLE_EXPERIMENTAL "enable building experimental features"                             OFF)
 
124
option ( ENABLE_PYTHON      "enable Python control support"                                      OFF)
125
125
option ( UPDATE_TRANSLATIONS "Update source translation share/locale/*.ts files 
126
 
         (WARNING: This will modify the .ts files in the source tree!!)"                     OFF)
127
 
option ( MODULES_BUILD_STATIC "Build type of internal modules"                               OFF)
 
126
         (WARNING: This will modify the .ts files in the source tree!!)"                         OFF)
 
127
option ( MODULES_BUILD_STATIC "Build type of internal modules"                                   OFF)
128
128
 
129
129
if ( MODULES_BUILD_STATIC )
130
130
      SET(MODULES_BUILD STATIC )
170
170
 
171
171
include(${QT_USE_FILE})
172
172
 
173
 
 
174
 
##
175
 
## find doxygen
176
 
##    TODO
 
173
##
 
174
##   Begin MANDATORY packages...
 
175
##
 
176
 
 
177
 
 
178
##
 
179
## find doxygen program
 
180
##
 
181
 
 
182
FIND_PROGRAM(DOXY doxygen)
177
183
 
178
184
##
179
185
## alsa >= 0.9.0
215
221
include_directories(${JACK_INCLUDE_DIRS})
216
222
 
217
223
##
 
224
##   End MANDATORY packages.
 
225
##
 
226
 
 
227
##
 
228
##   Begin OPTIONAL packages...
 
229
##
 
230
 
 
231
##
218
232
## find LASH 
219
233
##
220
234
 
305
319
      if (FLUIDSYN_FOUND)
306
320
            include_directories(${FLUIDSYN_INCLUDE_DIRS})
307
321
            set(HAVE_FLUIDSYNTH ON)
 
322
            ## This stuff is just F.Y.I. Please keep...
308
323
            # message("FLUIDSYN_LIBRARIES " ${FLUIDSYN_LIBRARIES} )          # "fluidsynth"
309
324
            # message("FLUIDSYN_LDFLAGS " ${FLUIDSYN_LDFLAGS} )              # "-lfluidsynth"
310
325
            # message("FLUIDSYN_LDFLAGS_OTHER " ${FLUIDSYN_LDFLAGS_OTHER} )  # empty
316
331
      message("Fluidsynth disabled")
317
332
endif ( ENABLE_FLUID )
318
333
 
 
334
##
 
335
##   End OPTIONAL packages.
 
336
##
 
337
 
 
338
 
319
339
if ( ENABLE_EXPERIMENTAL )
320
340
      set(CMAKE_CXX_FLAGS -DBUILD_EXPERIMENTAL ${CMAKE_CXX_FLAGS})
321
341
endif ( ENABLE_EXPERIMENTAL )
353
373
   .
354
374
   ${PROJECT_SOURCE_DIR}
355
375
   ${PROJECT_SOURCE_DIR}/muse
 
376
   ${PROJECT_SOURCE_DIR}/muse/instruments
356
377
   ${PROJECT_SOURCE_DIR}/muse/widgets
357
378
   ${PROJECT_BINARY_DIR}
358
379
   ${PROJECT_BINARY_DIR}/muse
 
380
   ${PROJECT_BINARY_DIR}/muse/instruments
359
381
   ${PROJECT_BINARY_DIR}/muse/widgets
360
 
   ${PROJECT_BINARY_DIR}/muse/instruments
361
382
   ${PROJECT_BINARY_DIR}/muse/ctrl
362
383
   )
363
384
 
432
453
add_custom_target(uninstall
433
454
  "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake")
434
455
 
 
456
##
 
457
## Report errors and warnings and hints  
 
458
##
 
459
 
 
460
message("\n")
 
461
 
 
462
if (${DOXY} STREQUAL "DOXY-NOTFOUND")
 
463
      message("** ERROR: The program 'doxygen' is required, but was not found.")
 
464
endif (${DOXY} STREQUAL "DOXY-NOTFOUND")
 
465
  
 
466
if (NOT ALSA_FOUND)
 
467
      message("** ERROR: alsa >= 0.9.0 is required, but development files were not found.")
 
468
endif (NOT ALSA_FOUND)           
 
469
 
 
470
if (NOT SNDFILE_FOUND)
 
471
      message("** ERROR: sndfile >= 1.0.0 is required, but development files were not found.")
 
472
endif (NOT SNDFILE_FOUND)           
 
473
 
 
474
if (NOT SAMPLERATE_FOUND)
 
475
      message("** ERROR: samplerate >= 0.1.0 is required, but development files were not found.")
 
476
endif (NOT SAMPLERATE_FOUND)           
 
477
 
 
478
if (NOT UUID_FOUND)
 
479
      message("** ERROR: uuid >= 0.0.1 is required, but development files were not found.")
 
480
endif (NOT UUID_FOUND)           
 
481
 
 
482
if (NOT JACK_FOUND)
 
483
      message("** ERROR: jack >= 0.103 is required, but development files were not found.")
 
484
endif (NOT JACK_FOUND)           
 
485
 
 
486
if (ENABLE_LASH AND (NOT LASH_FOUND))
 
487
        message("** WARNING: lash (>= 0.2) was enabled, but development files were not found. ")
 
488
        message("** HINT: Don't have LASH? Try installing the LADISH LASH compatibility package instead.")
 
489
endif (ENABLE_LASH AND (NOT LASH_FOUND))
 
490
 
 
491
if (ENABLE_OSC AND (NOT LIBLO_FOUND))
 
492
        message("** WARNING: liblo (>= 0.23) (Lightweight Open Sound Control) was enabled, but development files were not found.")
 
493
endif (ENABLE_OSC AND (NOT LIBLO_FOUND))
 
494
 
 
495
if (ENABLE_PYTHON AND (NOT PYTHONLIBS_FOUND))
 
496
        message("** WARNING: python was enabled, but development files were not found.")
 
497
endif (ENABLE_PYTHON AND (NOT PYTHONLIBS_FOUND))
 
498
 
 
499
if (ENABLE_DSSI AND (NOT DSSI_FOUND))
 
500
        message("** WARNING: dssi (>= 0.9.0) was enabled, but development files were not found.")
 
501
endif (ENABLE_DSSI AND (NOT DSSI_FOUND))
 
502
 
 
503
if (ENABLE_FLUID AND (NOT FLUIDSYN_FOUND))
 
504
        message("** WARNING: fluidsynth (>= 0.9.0) was enabled, but development files were not found.")
 
505
endif (ENABLE_FLUID AND (NOT FLUIDSYN_FOUND))
 
506
 
 
507
message("")
 
508
 
435
509
## Show a summary of what we got
436
510
summary_add("Lash support" HAVE_LASH)
437
511
summary_add("OSC (Liblo) support" OSC_SUPPORT)