Skip to content

Commit

Permalink
Use built-in RtMidi on Linux too
Browse files Browse the repository at this point in the history
  • Loading branch information
hfiguiere committed Nov 7, 2020
1 parent d262e30 commit cddc221
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/gui/qt/external/sp_midi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ if(APPLE)
add_definitions(-D__MACOSX_CORE__)
endif(APPLE)

if(UNIX)
list(APPEND sp_midi_sources ${PROJECT_SOURCE_DIR}/external_libs/rtmidi/RtMidi.cpp)
add_definitions(-D__LINUX_ALSA__)
endif(UNIX)

if(APPLE)
set(juce_sources
JuceLibraryCode/include_juce_core.mm
Expand Down Expand Up @@ -87,6 +92,6 @@ elseif(APPLE)
target_link_libraries(libsp_midi "-framework CoreMIDI -framework CoreAudio -framework CoreFoundation -framework Accelerate -framework QuartzCore -framework AudioToolbox -framework IOKit -framework DiscRecording -framework Cocoa")
elseif(UNIX)
add_definitions(-DLINUX=1 -DNDEBUG=1 -DJUCER_LINUX_MAKE_6D53C8B4=1 -DJUCE_APP_VERSION=1.0.0 -DJUCE_APP_VERSION_HEX=0x10000)
target_link_libraries(libsp_midi pthread ${ALSA_LIBRARY} dl rtmidi)
target_link_libraries(libsp_midi pthread ${ALSA_LIBRARY} dl)
endif(MSVC)

0 comments on commit cddc221

Please sign in to comment.