Get the audio sync once per update in alffplay
[openal-soft.git] / cmake / FindPortAudio.cmake
blobfad2313df834759e4d83d0feb18abb5178b434f1
1 # - Find PortAudio includes and libraries
3 #   PORTAUDIO_FOUND        - True if PORTAUDIO_INCLUDE_DIR & PORTAUDIO_LIBRARY
4 #                            are found
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
13           NAMES portaudio.h
14           DOC "The PortAudio include directory"
17 find_library(PORTAUDIO_LIBRARY
18              NAMES portaudio
19              DOC "The PortAudio library"
22 include(FindPackageHandleStandardArgs)
23 find_package_handle_standard_args(PortAudio
24     REQUIRED_VARS PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR
27 if(PORTAUDIO_FOUND)
28     set(PORTAUDIO_LIBRARIES ${PORTAUDIO_LIBRARY})
29     set(PORTAUDIO_INCLUDE_DIRS ${PORTAUDIO_INCLUDE_DIR})
30 endif()
32 mark_as_advanced(PORTAUDIO_INCLUDE_DIR PORTAUDIO_LIBRARY)