2010-03-17 20:14:13 +00:00
|
|
|
# Try to find the READLINE library
|
|
|
|
# MidiShare_FOUND - system has MidiShare
|
|
|
|
# MidiShare_INCLUDE_DIR - MidiShare include directory
|
2018-03-17 15:40:51 +00:00
|
|
|
# MidiShare_LIBRARIES - Libraries needed to use MidiShare
|
2010-03-17 20:14:13 +00:00
|
|
|
|
2018-03-17 15:40:51 +00:00
|
|
|
if ( MidiShare_INCLUDE_DIR AND MidiShare_LIBRARIES )
|
2010-03-17 20:14:13 +00:00
|
|
|
set ( MidiShare_FIND_QUIETLY TRUE )
|
2018-03-17 15:40:51 +00:00
|
|
|
endif ( MidiShare_INCLUDE_DIR AND MidiShare_LIBRARIES )
|
2010-03-17 20:14:13 +00:00
|
|
|
|
|
|
|
find_path ( MidiShare_INCLUDE_DIR NAMES MidiShare.h )
|
2018-03-17 15:40:51 +00:00
|
|
|
find_library ( MidiShare_LIBRARIES NAMES MidiShare )
|
2010-03-17 20:14:13 +00:00
|
|
|
|
|
|
|
include ( FindPackageHandleStandardArgs )
|
|
|
|
find_package_handle_standard_args( MidiShare DEFAULT_MSG
|
|
|
|
MidiShare_INCLUDE_DIR
|
2018-03-17 15:40:51 +00:00
|
|
|
MidiShare_LIBRARIES )
|
2010-03-17 20:14:13 +00:00
|
|
|
|
2018-03-17 15:40:51 +00:00
|
|
|
mark_as_advanced( MidiShare_INCLUDE_DIR MidiShare_LIBRARIES )
|