1 # - Find PortAudio includes and libraries
3 # PORTAUDIO_FOUND - True if PORTAUDIO_INCLUDE_DIR & PORTAUDIO_LIBRARY
5 # PORTAUDIO_LIBRARIES - Set when PORTAUDIO_LIBRARY is found
6 # PORTAUDIO_INCLUDE_DIRS - Set when PORTAUDIO_INCLUDE_DIR is found
8 # PORTAUDIO_INCLUDE_DIR - where to find portaudio.h, etc.
9 # PORTAUDIO_LIBRARY - the portaudio library
12 find_path(PORTAUDIO_INCLUDE_DIR
14 DOC "The PortAudio include directory"
17 find_library(PORTAUDIO_LIBRARY
19 DOC "The PortAudio library"
22 include(FindPackageHandleStandardArgs)
23 find_package_handle_standard_args(PortAudio
24 REQUIRED_VARS PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR
28 set(PORTAUDIO_LIBRARIES ${PORTAUDIO_LIBRARY})
29 set(PORTAUDIO_INCLUDE_DIRS ${PORTAUDIO_INCLUDE_DIR})
32 mark_as_advanced(PORTAUDIO_INCLUDE_DIR PORTAUDIO_LIBRARY)