fluidsynth/cmake_admin/FindMidiShare.cmake
derselbst 94316addcf fix build
midishare complaining libs not found
2018-03-17 16:40:51 +01:00

18 lines
728 B
CMake

# Try to find the READLINE library
# MidiShare_FOUND - system has MidiShare
# MidiShare_INCLUDE_DIR - MidiShare include directory
# MidiShare_LIBRARIES - Libraries needed to use MidiShare
if ( MidiShare_INCLUDE_DIR AND MidiShare_LIBRARIES )
set ( MidiShare_FIND_QUIETLY TRUE )
endif ( MidiShare_INCLUDE_DIR AND MidiShare_LIBRARIES )
find_path ( MidiShare_INCLUDE_DIR NAMES MidiShare.h )
find_library ( MidiShare_LIBRARIES NAMES MidiShare )
include ( FindPackageHandleStandardArgs )
find_package_handle_standard_args( MidiShare DEFAULT_MSG
MidiShare_INCLUDE_DIR
MidiShare_LIBRARIES )
mark_as_advanced( MidiShare_INCLUDE_DIR MidiShare_LIBRARIES )