2012-05-26 14:49:10 +02:00
|
|
|
#=============================================================================
|
|
|
|
# MuseScore
|
|
|
|
# Linux Music Score Editor
|
|
|
|
#
|
2013-04-12 22:40:45 +02:00
|
|
|
# Copyright (C) 2002-2013 by Werner Schweer and others
|
2012-05-26 14:49:10 +02:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License version 2.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
#=============================================================================
|
|
|
|
|
|
|
|
include (${PROJECT_SOURCE_DIR}/build/gch.cmake)
|
|
|
|
|
|
|
|
SET_SOURCE_FILES_PROPERTIES(revision.h PROPERTIES GENERATED TRUE)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${PROJECT_SOURCE_DIR}
|
|
|
|
${PROJECT_SOURCE_DIR}/thirdparty
|
|
|
|
${QTSINGLEAPPLICATION_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
|
2012-07-09 14:16:27 +02:00
|
|
|
if (SCRIPT_INTERFACE)
|
2014-04-25 18:43:25 +02:00
|
|
|
set (SCRIPT_FILES mscorePlugins pluginCreator.cpp qmledit.cpp)
|
|
|
|
set (SCRIPT_MOCS pluginCreator.h qmledit.h)
|
2012-07-09 14:16:27 +02:00
|
|
|
set (SCRIPT_UI pluginCreator.ui)
|
|
|
|
endif (SCRIPT_INTERFACE)
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
QT4_WRAP_UI (ui_headers
|
2013-07-05 17:07:08 +02:00
|
|
|
insertmeasuresdialog.ui editinstrument.ui editstyle.ui instrdialog.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
measuresdialog.ui pagesettings.ui mixer.ui playpanel.ui prefsdialog.ui measureproperties.ui
|
|
|
|
textpalette.ui timedialog.ui symboldialog.ui shortcutcapturedialog.ui editdrumset.ui
|
|
|
|
editstaff.ui voltaproperties.ui timesigproperties.ui boxproperties.ui
|
2012-05-26 14:49:10 +02:00
|
|
|
instrwizard.ui timesigwizard.ui newwizard.ui aboutbox.ui aboutmusicxmlbox.ui
|
2013-12-06 01:42:12 +01:00
|
|
|
transposedialog.ui lineproperties.ui excerptsdialog.ui stafftext.ui tupletdialog.ui
|
2013-07-01 16:57:44 +02:00
|
|
|
glissandoprop.ui articulation.ui metaedit.ui palette.ui select.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
synthcontrol.ui splitstaff.ui cellproperties.ui keyedit.ui selectinstr.ui
|
2014-05-15 09:21:01 +02:00
|
|
|
fretdprops.ui editstafftype.ui sectionbreak.ui bend.ui tremolobar.ui textproperties.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
editpitch.ui editstringdata.ui editraster.ui mediadialog.ui textstyle.ui album.ui layer.ui
|
|
|
|
omrpanel.ui startdialog.ui masterpalette.ui pluginManager.ui harmonyedit.ui pathlistdialog.ui
|
2014-05-12 17:54:21 +02:00
|
|
|
note_groups.ui importmidi_panel.ui resourceManager.ui stafftypetemplates.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
|
|
|
|
debugger/barline.ui
|
|
|
|
debugger/harmony.ui
|
|
|
|
debugger/box.ui
|
|
|
|
debugger/keysig.ui
|
|
|
|
debugger/rest.ui
|
|
|
|
debugger/articulationbase.ui
|
|
|
|
debugger/accidental.ui
|
|
|
|
debugger/clef.ui
|
|
|
|
debugger/slursegment.ui
|
|
|
|
debugger/spanner.ui
|
|
|
|
debugger/tremolo.ui
|
|
|
|
debugger/beam.ui
|
|
|
|
debugger/lyrics.ui
|
|
|
|
debugger/linesegment.ui
|
|
|
|
debugger/textline.ui
|
|
|
|
debugger/line.ui
|
|
|
|
debugger/slurtie.ui
|
2013-06-28 10:55:25 +02:00
|
|
|
debugger/tie.ui
|
2013-06-10 11:03:34 +02:00
|
|
|
debugger/tuplet.ui
|
|
|
|
debugger/dynamic.ui
|
|
|
|
debugger/hairpin.ui
|
|
|
|
debugger/chord.ui
|
|
|
|
debugger/chordrest.ui
|
|
|
|
debugger/segment.ui
|
|
|
|
debugger/measure.ui
|
|
|
|
debugger/element.ui
|
|
|
|
debugger/debugger.ui
|
|
|
|
debugger/note.ui
|
|
|
|
debugger/page.ui
|
|
|
|
debugger/text.ui
|
|
|
|
debugger/stem.ui
|
|
|
|
debugger/system.ui
|
|
|
|
|
|
|
|
inspector/inspector_element.ui
|
|
|
|
inspector/inspector_vbox.ui
|
|
|
|
inspector/inspector_articulation.ui
|
|
|
|
inspector/inspector_spacer.ui
|
|
|
|
inspector/inspector_hbox.ui
|
|
|
|
inspector/inspector_segment.ui
|
|
|
|
inspector/inspector_beam.ui
|
|
|
|
inspector/inspector_note.ui
|
|
|
|
inspector/inspector_rest.ui
|
|
|
|
inspector/inspector_chord.ui
|
|
|
|
inspector/inspector_group_element.ui
|
|
|
|
inspector/inspector_image.ui
|
|
|
|
inspector/inspector_lasso.ui
|
|
|
|
inspector/inspector_volta.ui
|
|
|
|
inspector/inspector_ottava.ui
|
|
|
|
inspector/inspector_trill.ui
|
|
|
|
inspector/inspector_hairpin.ui
|
|
|
|
inspector/inspector_jump.ui
|
|
|
|
inspector/inspector_marker.ui
|
|
|
|
inspector/inspector_glissando.ui
|
|
|
|
inspector/inspector_clef.ui
|
|
|
|
inspector/inspector_timesig.ui
|
|
|
|
inspector/inspector_keysig.ui
|
|
|
|
inspector/inspector_barline.ui
|
|
|
|
inspector/inspector_tuplet.ui
|
|
|
|
inspector/inspector_accidental.ui
|
|
|
|
inspector/inspector_tempotext.ui
|
|
|
|
inspector/inspector_dynamic.ui
|
|
|
|
inspector/inspector_line.ui
|
|
|
|
inspector/inspector_textline.ui
|
2013-07-01 16:57:44 +02:00
|
|
|
inspector/inspector_slur.ui
|
2013-07-22 16:21:19 +02:00
|
|
|
inspector/inspector_text.ui
|
2013-11-25 12:17:12 +01:00
|
|
|
inspector/inspector_ambitus.ui
|
2012-07-09 14:16:27 +02:00
|
|
|
${SCRIPT_UI}
|
2012-05-26 14:49:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if (OMR)
|
|
|
|
set(OMR_MOCS omrpanel.h)
|
|
|
|
endif (OMR)
|
|
|
|
|
2012-08-13 13:50:07 +02:00
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
QT4_WRAP_CPP (mocs
|
2013-07-05 17:07:08 +02:00
|
|
|
scoreview.h editinstrument.h editstyle.h instrdialog.h
|
2012-05-26 14:49:10 +02:00
|
|
|
musescore.h navigator.h pagesettings.h palette.h mixer.h playpanel.h
|
2014-06-02 12:12:53 +02:00
|
|
|
measureproperties.h seq.h textpalette.h textstyle.h selectionwindow.h
|
2012-05-26 14:49:10 +02:00
|
|
|
timedialog.h symboldialog.h shortcutcapturedialog.h simplebutton.h
|
|
|
|
greendotbutton.h recordbutton.h editdrumset.h editstaff.h selinstrument.h
|
2013-02-25 18:15:28 +01:00
|
|
|
voltaproperties.h timesigproperties.h boxproperties.h newwizard.h
|
2013-12-06 01:42:12 +01:00
|
|
|
transposedialog.h lineproperties.h
|
2012-05-26 14:49:10 +02:00
|
|
|
excerptsdialog.h stafftextproperties.h glissandoproperties.h
|
2013-05-31 17:48:47 +02:00
|
|
|
articulationprop.h metaedit.h magbox.h
|
2013-03-27 13:56:46 +01:00
|
|
|
textprop.h textproperties.h tupletdialog.h
|
2013-07-01 16:57:44 +02:00
|
|
|
selectdialog.h synthcontrol.h drumroll.h pianoroll.h
|
2012-05-26 14:49:10 +02:00
|
|
|
piano.h ruler.h file.h
|
|
|
|
pianoview.h drumview.h splitstaff.h scoretab.h keyedit.h keycanvas.h harmonyedit.h
|
|
|
|
harmonycanvas.h updatechecker.h fretproperties.h fretcanvas.h editstafftype.h
|
2013-03-27 17:52:26 +01:00
|
|
|
prefsdialog.h sectionbreakprop.h bendproperties.h
|
2012-05-26 14:49:10 +02:00
|
|
|
bendcanvas.h tremolobarprop.h tremolobarcanvas.h
|
2013-06-28 19:45:05 +02:00
|
|
|
drumtools.h texteditor.h texttools.h pianotools.h editpitch.h
|
2013-02-18 16:39:53 +01:00
|
|
|
editstringdata.h editraster.h mediadialog.h chordview.h album.h layer.h
|
2013-06-10 11:03:34 +02:00
|
|
|
webpage.h
|
|
|
|
inspector/inspector.h inspector/inspectorBase.h inspector/inspectorBeam.h masterpalette.h
|
|
|
|
inspector/inspectorGroupElement.h inspector/inspectorImage.h waveview.h helpBrowser.h
|
|
|
|
inspector/inspectorLasso.h inspector/inspectorVolta.h inspector/inspectorOttava.h
|
|
|
|
inspector/inspectorTrill.h
|
|
|
|
inspector/inspectorHairpin.h qmlplugin.h palettebox.h workspace.h pluginManager.h
|
|
|
|
inspector/inspectorJump.h inspector/inspectorMarker.h inspector/inspectorGlissando.h
|
2013-11-25 12:17:12 +01:00
|
|
|
inspector/inspectorNote.h inspector/inspectorAmbitus.h
|
2013-06-10 11:03:34 +02:00
|
|
|
paletteBoxButton.h pathlistdialog.h exampleview.h noteGroups.h inspector/inspectorTextLine.h
|
2014-07-31 15:42:00 +02:00
|
|
|
importmidi_panel.h importmidi_delegate.h importmidi_view.h
|
|
|
|
debugger/debugger.h
|
2014-05-15 15:15:33 +02:00
|
|
|
resourceManager.h downloadUtils.h accessibletoolbutton.h
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
${OMR_MOCS}
|
2012-07-09 14:16:27 +02:00
|
|
|
${SCRIPT_MOCS}
|
2012-05-26 14:49:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if (APPLE)
|
2014-07-30 00:39:02 +02:00
|
|
|
QT4_ADD_RESOURCES (qrc_files musescore.qrc)
|
2012-05-26 14:49:10 +02:00
|
|
|
else (APPLE)
|
2014-08-12 10:27:52 +02:00
|
|
|
QT5_ADD_RESOURCES (qrc_files musescore.qrc
|
|
|
|
musescorefonts-MScore.qrc
|
|
|
|
musescorefonts-Gonville.qrc
|
|
|
|
musescorefonts-Bravura.qrc
|
|
|
|
musescorefonts-MuseJazz.qrc
|
|
|
|
musescorefonts-Free.qrc)
|
2012-05-26 14:49:10 +02:00
|
|
|
endif (APPLE)
|
|
|
|
|
|
|
|
|
|
|
|
set (AUDIO "")
|
|
|
|
if (MINGW)
|
|
|
|
set (resource_file ${PROJECT_BINARY_DIR}/resfile.o)
|
|
|
|
else (MINGW)
|
|
|
|
if (USE_ALSA)
|
|
|
|
set (AUDIO ${AUDIO} alsa.cpp mididriver.cpp)
|
|
|
|
endif (USE_ALSA)
|
|
|
|
endif (MINGW)
|
|
|
|
|
|
|
|
if (USE_PORTAUDIO)
|
|
|
|
set (AUDIO ${AUDIO} pa.cpp)
|
|
|
|
endif (USE_PORTAUDIO)
|
|
|
|
|
|
|
|
if (USE_PULSEAUDIO)
|
|
|
|
set (AUDIO ${AUDIO} pulseaudio.cpp)
|
|
|
|
endif (USE_PULSEAUDIO)
|
|
|
|
|
|
|
|
if (USE_PORTMIDI)
|
|
|
|
set (AUDIO ${AUDIO} pm.cpp)
|
|
|
|
endif (USE_PORTMIDI)
|
|
|
|
|
|
|
|
if (USE_JACK)
|
|
|
|
set (AUDIO ${AUDIO} jackaudio.cpp jackweakapi.cpp)
|
|
|
|
endif (USE_JACK)
|
|
|
|
|
|
|
|
if (APPLE)
|
2014-07-22 16:43:29 +02:00
|
|
|
set (ExecutableName mscore MACOSX_BUNDLE)
|
|
|
|
set (MACOSX_BUNDLE_ICON_FILE mscore.icns)
|
|
|
|
set (MACOSX_BUNDLE_GUI_IDENTIFIER org.musescore.MuseScore)
|
|
|
|
set (MACOSX_BUNDLE_LONG_VERSION_STRING ${MUSESCORE_VERSION_FULL})
|
|
|
|
set (MACOSX_BUNDLE_BUNDLE_NAME MuseScore)
|
|
|
|
set (MACOSX_BUNDLE_SHORT_VERSION_STRING ${MUSESCORE_VERSION})
|
|
|
|
set (MACOSX_BUNDLE_BUNDLE_VERSION ${MUSESCORE_VERSION_FULL})
|
|
|
|
set (MACOSX_BUNDLE_COPYRIGHT musescore.org)
|
2012-05-26 14:49:10 +02:00
|
|
|
else (APPLE)
|
2014-07-22 16:43:29 +02:00
|
|
|
set (ExecutableName mscore)
|
2012-05-26 14:49:10 +02:00
|
|
|
endif (APPLE)
|
|
|
|
|
|
|
|
if (OMR)
|
|
|
|
set(OMR_FILES omrpanel.cpp)
|
|
|
|
endif (OMR)
|
|
|
|
|
2012-08-13 13:50:07 +02:00
|
|
|
if (APPLE)
|
2014-07-22 16:43:29 +02:00
|
|
|
file(GLOB_RECURSE INCS "*.h")
|
2012-08-13 13:50:07 +02:00
|
|
|
else (APPLE)
|
2014-07-22 16:43:29 +02:00
|
|
|
set(INCS "")
|
2012-08-13 13:50:07 +02:00
|
|
|
endif (APPLE)
|
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
add_executable ( ${ExecutableName}
|
2013-07-11 15:00:25 +02:00
|
|
|
# mops.cpp # HACK! first file disappears during linking as CMake generates
|
|
|
|
# # something like: gcc ... -L mops.o ...
|
2012-05-26 14:49:10 +02:00
|
|
|
${qrc_files}
|
|
|
|
${ui_headers}
|
|
|
|
${mocs}
|
|
|
|
${PROJECT_BINARY_DIR}/all.h
|
|
|
|
${PCH}
|
|
|
|
${resource_file}
|
2012-08-13 13:50:07 +02:00
|
|
|
${INCS}
|
2012-05-26 14:49:10 +02:00
|
|
|
|
|
|
|
actions.cpp scoreview.cpp editinstrument.cpp editstyle.cpp
|
2013-07-05 17:07:08 +02:00
|
|
|
icons.cpp importbww.cpp instrdialog.cpp
|
|
|
|
debugger/debugger.cpp menus.cpp importmidi.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
musescore.cpp navigator.cpp pagesettings.cpp palette.cpp
|
2014-06-02 12:12:53 +02:00
|
|
|
mixer.cpp playpanel.cpp selectionwindow.cpp preferences.cpp measureproperties.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
seq.cpp boxproperties.cpp textpalette.cpp
|
|
|
|
timedialog.cpp symboldialog.cpp shortcutcapturedialog.cpp
|
2013-06-12 14:23:57 +02:00
|
|
|
simplebutton.cpp musedata.cpp
|
|
|
|
# exportly.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
editdrumset.cpp editstaff.cpp voltaproperties.cpp
|
|
|
|
timesigproperties.cpp newwizard.cpp transposedialog.cpp
|
2013-12-06 01:42:12 +01:00
|
|
|
excerptsdialog.cpp metaedit.cpp magbox.cpp
|
2013-05-31 17:48:47 +02:00
|
|
|
capella.cpp capxml.cpp exportaudio.cpp palettebox.cpp
|
2013-07-01 16:57:44 +02:00
|
|
|
textproperties.cpp synthcontrol.cpp drumroll.cpp pianoroll.cpp piano.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
pianoview.cpp drumview.cpp scoretab.cpp keyedit.cpp harmonyedit.cpp
|
|
|
|
updatechecker.cpp importove.cpp ove.cpp ruler.cpp
|
2014-07-01 11:00:31 +02:00
|
|
|
importgtp.cpp importgtp-gp4.cpp importgtp-gp5.cpp importgtp-gp6.cpp fotomode.cpp drumtools.cpp
|
2013-06-28 19:45:05 +02:00
|
|
|
selinstrument.cpp texteditor.cpp editstafftype.cpp texttools.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
editpitch.cpp editstringdata.cpp editraster.cpp pianotools.cpp mediadialog.cpp
|
2013-02-18 16:39:53 +01:00
|
|
|
workspace.cpp exportmp3.cpp chordview.cpp
|
2013-03-27 13:56:46 +01:00
|
|
|
album.cpp webpage.cpp textstyle.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
lineproperties.cpp stafftextproperties.cpp splitstaff.cpp
|
2013-03-11 14:15:42 +01:00
|
|
|
tupletdialog.cpp glissandoproperties.cpp
|
2013-03-27 13:56:46 +01:00
|
|
|
articulationprop.cpp textprop.cpp
|
2013-03-27 17:52:26 +01:00
|
|
|
fretproperties.cpp sectionbreakprop.cpp
|
2012-05-26 14:49:10 +02:00
|
|
|
bendproperties.cpp tremolobarprop.cpp file.cpp keyb.cpp osc.cpp
|
2013-02-25 18:15:28 +01:00
|
|
|
layer.cpp selectdialog.cpp propertymenu.cpp shortcut.cpp bb.cpp
|
2013-06-10 11:03:34 +02:00
|
|
|
inspector/inspector.cpp dragelement.cpp svggenerator.cpp
|
|
|
|
inspector/inspectorBase.cpp inspector/inspectorBeam.cpp masterpalette.cpp
|
|
|
|
inspector/inspectorGroupElement.cpp dragdrop.cpp inspector/inspectorImage.cpp
|
|
|
|
waveview.cpp helpBrowser.cpp inspector/inspectorLasso.cpp
|
|
|
|
editelement.cpp inspector/inspectorVolta.cpp inspector/inspectorOttava.cpp
|
|
|
|
inspector/inspectorTrill.cpp
|
|
|
|
inspector/inspectorHairpin.cpp qmlplugin.cpp editlyrics.cpp
|
2014-05-22 21:35:45 +02:00
|
|
|
musicxmlfonthandler.cpp musicxmlsupport.cpp exportxml.cpp importxml.cpp importxmlfirstpass.cpp
|
2013-06-10 11:03:34 +02:00
|
|
|
savePositions.cpp pluginManager.cpp inspector/inspectorJump.cpp inspector/inspectorMarker.cpp
|
2013-11-25 12:17:12 +01:00
|
|
|
inspector/inspectorGlissando.cpp inspector/inspectorNote.cpp inspector/inspectorAmbitus.cpp
|
2013-10-29 23:41:38 +01:00
|
|
|
paletteBoxButton.cpp driver.cpp exportmidi.cpp noteGroups.cpp
|
2013-06-10 11:03:34 +02:00
|
|
|
pathlistdialog.cpp exampleview.cpp inspector/inspectorTextLine.cpp
|
2013-05-14 15:32:51 +02:00
|
|
|
importmidi_panel.cpp importmidi_operations.cpp miconengine.cpp
|
2014-07-22 16:43:29 +02:00
|
|
|
importmidi_model.cpp importmidi_delegate.cpp
|
2013-07-04 12:28:51 +02:00
|
|
|
importmidi_meter.cpp importmidi_quant.cpp importmidi_tuplet.cpp importmidi_chord.cpp
|
2014-07-22 16:43:29 +02:00
|
|
|
importmidi_swing.cpp importmidi_fraction.cpp importmidi_drum.cpp
|
|
|
|
importmidi_clef.cpp importmidi_lrhand.cpp importmidi_lyrics.cpp
|
|
|
|
importmidi_inner.cpp importmidi_tie.cpp importmidi_tuplet_voice.cpp importmidi_beat.cpp
|
|
|
|
importmidi_tuplet_detect.cpp importmidi_tuplet_filter.cpp importmidi_tuplet_tonotes.cpp
|
|
|
|
importmidi_simplify.cpp importmidi_voice.cpp importmidi_view.cpp
|
2013-09-30 18:38:05 +02:00
|
|
|
resourceManager.cpp downloadUtils.cpp
|
2013-11-28 16:13:41 +01:00
|
|
|
textcursor.cpp
|
2014-05-15 15:15:33 +02:00
|
|
|
continuouspanel.cpp accessibletoolbutton.cpp
|
2013-04-03 15:45:12 +02:00
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
${OMR_FILES}
|
|
|
|
${AUDIO}
|
2012-07-09 14:16:27 +02:00
|
|
|
${SCRIPT_FILES}
|
2013-02-04 16:13:46 +01:00
|
|
|
musescoreCore.h
|
|
|
|
driver.h
|
2012-05-26 14:49:10 +02:00
|
|
|
)
|
|
|
|
|
2013-05-14 17:25:16 +02:00
|
|
|
#qt5_use_modules(${ExecutableName} Gui Widgets Network)
|
2013-02-15 14:50:03 +01:00
|
|
|
|
2013-04-02 20:46:07 +02:00
|
|
|
target_link_libraries(mscore
|
|
|
|
awl
|
|
|
|
mstyle
|
|
|
|
diff_match_patch
|
|
|
|
bww
|
|
|
|
rtf2html
|
|
|
|
${QTSINGLEAPPLICATION_LIBRARIES}
|
|
|
|
synthesizer
|
2013-04-15 10:38:16 +02:00
|
|
|
midi
|
2013-04-02 20:46:07 +02:00
|
|
|
fluid
|
|
|
|
effects
|
|
|
|
vorbisfile
|
2014-05-07 19:58:14 +02:00
|
|
|
libmscore
|
|
|
|
xmlstream
|
|
|
|
qzip
|
2014-01-07 19:42:45 +01:00
|
|
|
beatroot
|
2013-04-02 20:46:07 +02:00
|
|
|
)
|
2014-04-29 03:52:10 +02:00
|
|
|
|
2014-05-11 13:10:58 +02:00
|
|
|
#if MSCORE_OUTPUT_NAME is set (e.g, when cmake is called by the user), the output executable will be
|
2014-04-29 15:20:01 +02:00
|
|
|
#called MSCORE_OUTPUT_NAME instead of 'mscore'. This can be used to have MuseScore stable and unstable
|
|
|
|
#both installed in the same prefix on a Linux system.
|
2014-04-29 03:52:10 +02:00
|
|
|
if (MSCORE_OUTPUT_NAME)
|
2014-07-22 16:43:29 +02:00
|
|
|
set_target_properties(
|
|
|
|
${ExecutableName}
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME ${MSCORE_OUTPUT_NAME}
|
|
|
|
)
|
2014-04-29 03:52:10 +02:00
|
|
|
endif (MSCORE_OUTPUT_NAME)
|
|
|
|
|
2013-04-02 20:46:07 +02:00
|
|
|
if (ZERBERUS)
|
|
|
|
target_link_libraries(mscore zerberus synthesizer)
|
|
|
|
endif ()
|
|
|
|
if (AEOLUS)
|
|
|
|
target_link_libraries(mscore aeolus)
|
|
|
|
endif ()
|
|
|
|
if (SOUNDFONT3)
|
2013-05-21 17:53:14 +02:00
|
|
|
target_link_libraries(mscore ${VORBIS_LIB} ${OGG_LIB})
|
2013-04-02 20:46:07 +02:00
|
|
|
endif ()
|
|
|
|
|
2013-05-21 17:53:14 +02:00
|
|
|
if (HAS_AUDIOFILE)
|
2013-06-03 12:54:11 +02:00
|
|
|
target_link_libraries(mscore audiofile ${SNDFILE_LIB})
|
2013-05-21 17:53:14 +02:00
|
|
|
endif (HAS_AUDIOFILE)
|
2013-04-02 20:46:07 +02:00
|
|
|
|
2012-05-26 14:49:10 +02:00
|
|
|
if (APPLE)
|
|
|
|
set_target_properties (mscore
|
2014-07-22 16:43:29 +02:00
|
|
|
PROPERTIES
|
|
|
|
MACOSX_BUNDLE_INFO_PLIST ${PROJECT_SOURCE_DIR}/build/MacOSXBundleInfo.plist.in)
|
2012-07-28 09:47:21 +02:00
|
|
|
#enable dSym generation
|
|
|
|
#set_target_properties (mscore
|
|
|
|
# PROPERTIES
|
|
|
|
# XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT "dwarf-with-dsym")
|
2012-05-26 14:49:10 +02:00
|
|
|
endif(APPLE)
|
|
|
|
|
|
|
|
if (OSC)
|
2014-07-22 16:43:29 +02:00
|
|
|
target_link_libraries(mscore ofqf)
|
2012-05-26 14:49:10 +02:00
|
|
|
endif (OSC)
|
|
|
|
|
|
|
|
if (MINGW)
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${PROJECT_BINARY_DIR}/resfile.o
|
|
|
|
COMMAND ${QT_WRC_EXECUTABLE} -i mscore.rc -o ${PROJECT_BINARY_DIR}/mscore.res
|
|
|
|
COMMAND ${QT_WINE_EXECUTABLE} /home/ws/.wine/drive_c/MingW/bin/windres.exe ${PROJECT_BINARY_DIR}/mscore.res -o ${PROJECT_BINARY_DIR}/resfile.o
|
|
|
|
DEPENDS ${PROJECT_SOURCE_DIR}/mscore/data/mscore.rc
|
|
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/mscore/data
|
|
|
|
)
|
|
|
|
set_source_files_properties(
|
|
|
|
${PROJECT_BINARY_DIR}/resfile.o
|
|
|
|
PROPERTIES generated true
|
|
|
|
)
|
|
|
|
# Windows: add -mconsole to LINK_FLAGS to get a console window for debug output
|
|
|
|
if(CMAKE_BUILD_TYPE MATCHES "DEBUG")
|
|
|
|
set_target_properties( mscore
|
|
|
|
PROPERTIES
|
2013-03-14 16:00:06 +01:00
|
|
|
COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wextra -Winvalid-pch ${QT_DEFINITIONS} -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB"
|
2012-05-26 14:49:10 +02:00
|
|
|
LINK_FLAGS "${PROJECT_BINARY_DIR}/resfile.o -mwindows -mconsole -L ${CROSSQT}/lib"
|
|
|
|
)
|
|
|
|
else(CMAKE_BUILD_TYPE MATCHES "DEBUG")
|
|
|
|
set_target_properties( mscore
|
|
|
|
PROPERTIES
|
2013-03-14 16:00:06 +01:00
|
|
|
COMPILE_FLAGS "${PCH_INCLUDE} -Wall -Wextra -Winvalid-pch ${QT_DEFINITIONS} -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB"
|
2012-05-26 14:49:10 +02:00
|
|
|
LINK_FLAGS "-Wl,-S ${PROJECT_BINARY_DIR}/resfile.o -mwindows -L ${CROSSQT}/lib"
|
|
|
|
)
|
|
|
|
endif(CMAKE_BUILD_TYPE MATCHES "DEBUG")
|
|
|
|
|
|
|
|
target_link_libraries(mscore
|
|
|
|
portaudio
|
|
|
|
portmidi
|
|
|
|
winmm
|
2013-07-26 15:39:46 +02:00
|
|
|
z
|
2012-05-26 14:49:10 +02:00
|
|
|
)
|
|
|
|
|
2012-12-16 17:38:15 +01:00
|
|
|
if (OMR)
|
|
|
|
target_link_libraries(mscore omr fitz freetype jbig2dec jpeg openjpeg)
|
2012-05-26 14:49:10 +02:00
|
|
|
if (OCR)
|
|
|
|
target_link_libraries(mscore tesseract_api)
|
|
|
|
endif (OCR)
|
|
|
|
endif (OMR)
|
|
|
|
|
|
|
|
target_link_libraries(mscore ${QT_mingw_LIBRARIES})
|
|
|
|
|
|
|
|
install( TARGETS mscore RUNTIME DESTINATION bin )
|
|
|
|
|
2013-07-13 12:20:34 +02:00
|
|
|
install( FILES
|
2013-07-11 16:04:15 +02:00
|
|
|
${CROSS}/bin/libgcc_s_dw2-1.dll
|
2013-02-20 12:22:02 +01:00
|
|
|
${CROSS}/bin/libstdc++-6.dll
|
|
|
|
${CROSS}/bin/libwinpthread-1.dll
|
2012-05-26 14:49:10 +02:00
|
|
|
${CROSS}/lib/portaudio.dll
|
|
|
|
${CROSS}/lib/libsndfile-1.dll
|
|
|
|
${CROSS}/lib/libogg.dll
|
|
|
|
${CROSS}/lib/libvorbis.dll
|
|
|
|
${CROSS}/lib/libvorbisfile.dll
|
2013-05-14 17:25:16 +02:00
|
|
|
${CROSSQT}/bin/Qt5Core.dll
|
|
|
|
${CROSSQT}/bin/Qt5Widgets.dll
|
|
|
|
${CROSSQT}/bin/Qt5Gui.dll
|
|
|
|
${CROSSQT}/bin/Qt5Xml.dll
|
|
|
|
${CROSSQT}/bin/Qt5Svg.dll
|
|
|
|
${CROSSQT}/bin/Qt5Network.dll
|
|
|
|
${CROSSQT}/bin/Qt5WebKit.dll
|
|
|
|
${CROSSQT}/bin/Qt5WebKitWidgets.dll
|
|
|
|
${CROSSQT}/bin/Qt5XmlPatterns.dll
|
2013-05-16 17:06:31 +02:00
|
|
|
${CROSSQT}/bin/Qt5Qml.dll
|
|
|
|
${CROSSQT}/bin/Qt5Quick.dll
|
2013-05-14 17:25:16 +02:00
|
|
|
${CROSSQT}/bin/Qt5Script.dll
|
|
|
|
${CROSSQT}/bin/Qt5Sql.dll
|
2014-01-24 11:34:26 +01:00
|
|
|
${CROSSQT}/bin/Qt5Positioning.dll
|
2013-05-14 17:25:16 +02:00
|
|
|
${CROSSQT}/bin/Qt5PrintSupport.dll
|
2013-05-17 18:38:51 +02:00
|
|
|
${CROSSQT}/bin/Qt5OpenGL.dll
|
2013-07-09 17:30:49 +02:00
|
|
|
${CROSSQT}/bin/Qt5Sensors.dll
|
2013-08-28 15:38:11 +02:00
|
|
|
${CROSSQT}/bin/Qt5Multimedia.dll
|
|
|
|
${CROSSQT}/bin/Qt5MultimediaWidgets.dll
|
2014-05-19 14:10:54 +02:00
|
|
|
${CROSSQT}/bin/icuin52.dll
|
|
|
|
${CROSSQT}/bin/icuuc52.dll
|
|
|
|
${CROSSQT}/bin/icudt52.dll
|
2014-07-15 14:36:55 +02:00
|
|
|
${PROJECT_SOURCE_DIR}/build/qt.conf
|
2013-07-13 12:20:34 +02:00
|
|
|
DESTINATION bin)
|
|
|
|
|
|
|
|
install(FILES
|
2013-05-14 17:25:16 +02:00
|
|
|
${CROSSQT}/plugins/iconengines/qsvgicon.dll
|
2013-07-13 12:20:34 +02:00
|
|
|
DESTINATION bin/iconengines)
|
|
|
|
|
|
|
|
install(FILES
|
2013-05-14 17:25:16 +02:00
|
|
|
${CROSSQT}/plugins/imageformats/qjpeg.dll
|
|
|
|
${CROSSQT}/plugins/imageformats/qmng.dll
|
|
|
|
${CROSSQT}/plugins/imageformats/qsvg.dll
|
|
|
|
${CROSSQT}/plugins/imageformats/qtiff.dll
|
2013-07-13 12:20:34 +02:00
|
|
|
DESTINATION bin/imageformats)
|
|
|
|
|
|
|
|
install(FILES
|
2013-07-12 11:50:40 +02:00
|
|
|
${CROSSQT}/plugins/platforms/qwindows.dll
|
2013-07-13 12:20:34 +02:00
|
|
|
DESTINATION bin/platforms)
|
|
|
|
|
2013-07-17 10:02:21 +02:00
|
|
|
install(FILES
|
|
|
|
${CROSSQT}/plugins/printsupport/windowsprintersupport.dll
|
|
|
|
DESTINATION bin/printsupport)
|
|
|
|
|
2013-07-13 12:20:34 +02:00
|
|
|
install(DIRECTORY
|
|
|
|
${CROSSQT}/qml
|
|
|
|
DESTINATION .
|
|
|
|
REGEX ".*QtWebkit.*" EXCLUDE
|
|
|
|
REGEX ".*QtTest.*" EXCLUDE
|
|
|
|
REGEX ".*QtSensors.*" EXCLUDE
|
|
|
|
REGEX ".*QtGraphicalEffects.*" EXCLUDE
|
2013-07-15 18:48:57 +02:00
|
|
|
REGEX ".*QtMultimedia.*" EXCLUDE
|
|
|
|
REGEX ".*d\\.dll" EXCLUDE)
|
2012-05-26 14:49:10 +02:00
|
|
|
|
|
|
|
else (MINGW)
|
|
|
|
target_link_libraries(mscore
|
|
|
|
${ALSA_LIB}
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
z
|
|
|
|
dl
|
|
|
|
pthread
|
|
|
|
)
|
|
|
|
if (USE_PORTAUDIO)
|
|
|
|
target_link_libraries(mscore ${PORTAUDIO_LIB})
|
|
|
|
endif (USE_PORTAUDIO)
|
|
|
|
|
|
|
|
if (USE_PULSEAUDIO)
|
|
|
|
target_link_libraries(mscore ${PULSEAUDIO_LIBRARY})
|
|
|
|
endif (USE_PULSEAUDIO)
|
|
|
|
|
|
|
|
set_target_properties (
|
|
|
|
mscore
|
|
|
|
PROPERTIES
|
2013-03-14 16:00:06 +01:00
|
|
|
COMPILE_FLAGS "${PCH_INCLUDE} -g -Wall -Wno-overloaded-virtual -Winvalid-pch"
|
2012-05-26 14:49:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if (OMR)
|
2012-12-16 17:38:15 +01:00
|
|
|
target_link_libraries(mscore omr fitz fontconfig freetype jbig2dec jpeg openjpeg)
|
2012-05-26 14:49:10 +02:00
|
|
|
if (OCR)
|
|
|
|
target_link_libraries(mscore tesseract_api)
|
|
|
|
endif (OCR)
|
|
|
|
endif (OMR)
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
if (USE_PORTMIDI)
|
|
|
|
target_link_libraries(mscore portmidi)
|
|
|
|
endif (USE_PORTMIDI)
|
|
|
|
target_link_libraries(mscore ${OsxFrameworks})
|
|
|
|
else (APPLE)
|
|
|
|
target_link_libraries(mscore rt)
|
|
|
|
endif (APPLE)
|
|
|
|
|
|
|
|
# gold does not use indirect shared libraries for symbol resolution, Linux only
|
2013-03-13 18:55:42 +01:00
|
|
|
if (NOT APPLE)
|
2012-05-26 14:49:10 +02:00
|
|
|
if(USE_JACK)
|
|
|
|
target_link_libraries(mscore dl)
|
|
|
|
endif(USE_JACK)
|
|
|
|
target_link_libraries(mscore rt)
|
2013-03-13 18:55:42 +01:00
|
|
|
endif (NOT APPLE)
|
2012-05-26 14:49:10 +02:00
|
|
|
|
|
|
|
if (APPLE)
|
2013-03-13 18:55:42 +01:00
|
|
|
set_target_properties(mscore
|
|
|
|
PROPERTIES
|
|
|
|
LINK_FLAGS "-stdlib=libc++"
|
|
|
|
)
|
2013-03-14 16:00:06 +01:00
|
|
|
xcode_pch(mscore all)
|
2012-05-26 14:49:10 +02:00
|
|
|
install (TARGETS mscore BUNDLE DESTINATION ${CMAKE_INSTALL_PREFIX})
|
|
|
|
install (FILES data/mscore.icns DESTINATION ${Mscore_SHARE_NAME}${Mscore_INSTALL_NAME})
|
|
|
|
install (FILES data/musescoreDocument.icns DESTINATION ${Mscore_SHARE_NAME}${Mscore_INSTALL_NAME})
|
|
|
|
else (APPLE)
|
|
|
|
install( TARGETS mscore RUNTIME DESTINATION bin )
|
|
|
|
install( FILES data/mscore.png DESTINATION share/pixmaps)
|
|
|
|
endif (APPLE)
|
|
|
|
endif (MINGW)
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
install (FILES
|
2014-01-13 17:44:23 +01:00
|
|
|
../fonts/gonville/Gonville.otf
|
2013-11-14 17:29:49 +01:00
|
|
|
../fonts/mscore/mscore.ttf
|
2014-07-23 17:51:00 +02:00
|
|
|
../fonts/mscore/MScoreText.ttf
|
2012-05-26 14:49:10 +02:00
|
|
|
../fonts/MuseJazz.ttf
|
2014-01-22 16:19:54 +01:00
|
|
|
../fonts/FreeSerif.ttf
|
2014-03-04 10:08:00 +01:00
|
|
|
../fonts/FreeSerifBold.ttf
|
2012-05-26 14:49:10 +02:00
|
|
|
../fonts/FreeSans.ttf
|
2012-08-16 12:12:55 +02:00
|
|
|
../fonts/mscoreTab.ttf
|
2012-05-26 14:49:10 +02:00
|
|
|
../fonts/mscore-BC.ttf
|
2013-08-14 16:26:21 +02:00
|
|
|
../fonts/bravura/Bravura.otf
|
2014-07-23 15:32:34 +02:00
|
|
|
../fonts/bravura/BravuraText.otf
|
2012-05-26 14:49:10 +02:00
|
|
|
DESTINATION ${Mscore_SHARE_NAME}${Mscore_INSTALL_NAME}fonts
|
|
|
|
)
|
2013-07-20 11:15:56 +02:00
|
|
|
install(DIRECTORY
|
|
|
|
${QT_INSTALL_PREFIX}/qml
|
|
|
|
DESTINATION ${Mscore_SHARE_NAME}${Mscore_INSTALL_NAME}
|
|
|
|
REGEX ".*QtWebkit.*" EXCLUDE
|
|
|
|
REGEX ".*QtTest.*" EXCLUDE
|
|
|
|
REGEX ".*QtSensors.*" EXCLUDE
|
|
|
|
REGEX ".*QtGraphicalEffects.*" EXCLUDE
|
|
|
|
REGEX ".*QtMultimedia.*" EXCLUDE
|
|
|
|
REGEX ".*QtAudioEngine.*" EXCLUDE
|
|
|
|
REGEX ".*_debug\\.dylib" EXCLUDE)
|
2012-05-26 14:49:10 +02:00
|
|
|
endif (APPLE)
|
|
|
|
|
|
|
|
ADD_DEPENDENCIES(${ExecutableName} mops1)
|
|
|
|
ADD_DEPENDENCIES(${ExecutableName} mops2)
|
|
|
|
|