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")
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)
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)
129
129
if ( MODULES_BUILD_STATIC )
130
130
SET(MODULES_BUILD STATIC )
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 )
335
## End OPTIONAL packages.
319
339
if ( ENABLE_EXPERIMENTAL )
320
340
set(CMAKE_CXX_FLAGS -DBUILD_EXPERIMENTAL ${CMAKE_CXX_FLAGS})
321
341
endif ( ENABLE_EXPERIMENTAL )
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
432
453
add_custom_target(uninstall
433
454
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake")
457
## Report errors and warnings and hints
462
if (${DOXY} STREQUAL "DOXY-NOTFOUND")
463
message("** ERROR: The program 'doxygen' is required, but was not found.")
464
endif (${DOXY} STREQUAL "DOXY-NOTFOUND")
467
message("** ERROR: alsa >= 0.9.0 is required, but development files were not found.")
468
endif (NOT ALSA_FOUND)
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)
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)
479
message("** ERROR: uuid >= 0.0.1 is required, but development files were not found.")
480
endif (NOT UUID_FOUND)
483
message("** ERROR: jack >= 0.103 is required, but development files were not found.")
484
endif (NOT JACK_FOUND)
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))
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))
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))
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))
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))
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)