Created
November 15, 2019 19:09
-
-
Save couleurs/1003849914ce139adc3a30a9e300d798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( NOT TARGET Cinder-MIDI2 ) | |
get_filename_component( MIDI2_ROOT_PATH "${CMAKE_CURRENT_LIST_DIR}/../.." ABSOLUTE ) | |
list( APPEND MIDI2_SOURCES | |
${MIDI2_ROOT_PATH}/src/MidiHub.cpp | |
${MIDI2_ROOT_PATH}/src/MidiIn.cpp | |
${MIDI2_ROOT_PATH}/src/MidiMessage.cpp | |
${MIDI2_ROOT_PATH}/src/MidiOut.cpp | |
${MIDI2_ROOT_PATH}/lib/RtMidi.cpp | |
) | |
add_library( Cinder-MIDI2 ${MIDI2_SOURCES} ) | |
list( APPEND MIDI2_INCLUDE_DIRS | |
${MIDI2_ROOT_PATH}/include | |
${MIDI2_ROOT_PATH}/lib | |
) | |
target_include_directories( Cinder-MIDI2 PUBLIC "${MIDI2_INCLUDE_DIRS}" ) | |
if( NOT TARGET cinder ) | |
include( "${CINDER_PATH}/proj/cmake/configure.cmake" ) | |
find_package( cinder REQUIRED PATHS | |
"${CINDER_PATH}/${CINDER_LIB_DIRECTORY}" | |
"$ENV{CINDER_PATH}/${CINDER_LIB_DIRECTORY}" ) | |
endif() | |
target_link_libraries( Cinder-MIDI2 PRIVATE cinder ) | |
endif() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment