Recognize NULL as an empty vector/string
[openal-soft.git] / cmake / FindFluidSynth.cmake
blob7d5cb6a8ede8650431a88c44d7041c98f2cbcba6
1 # - Find fluidsynth
2 # Find the native fluidsynth includes and library
4 #  FLUIDSYNTH_INCLUDE_DIR - where to find fluidsynth.h
5 #  FLUIDSYNTH_LIBRARIES   - List of libraries when using fluidsynth.
6 #  FLUIDSYNTH_FOUND       - True if fluidsynth found.
9 IF (FLUIDSYNTH_INCLUDE_DIR AND FLUIDSYNTH_LIBRARIES)
10   # Already in cache, be silent
11   SET(FluidSynth_FIND_QUIETLY TRUE)
12 ENDIF (FLUIDSYNTH_INCLUDE_DIR AND FLUIDSYNTH_LIBRARIES)
14 FIND_PATH(FLUIDSYNTH_INCLUDE_DIR fluidsynth.h)
16 FIND_LIBRARY(FLUIDSYNTH_LIBRARIES NAMES fluidsynth )
17 MARK_AS_ADVANCED( FLUIDSYNTH_LIBRARIES FLUIDSYNTH_INCLUDE_DIR )
19 # handle the QUIETLY and REQUIRED arguments and set FLUIDSYNTH_FOUND to TRUE if 
20 # all listed variables are TRUE
21 INCLUDE(FindPackageHandleStandardArgs)
22 FIND_PACKAGE_HANDLE_STANDARD_ARGS(FluidSynth DEFAULT_MSG FLUIDSYNTH_LIBRARIES FLUIDSYNTH_INCLUDE_DIR)