🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
964 B

  1. # - Find PortAudio includes and libraries
  2. #
  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
  7. #
  8. # PORTAUDIO_INCLUDE_DIR - where to find portaudio.h, etc.
  9. # PORTAUDIO_LIBRARY - the portaudio library
  10. #
  11. find_path(PORTAUDIO_INCLUDE_DIR
  12. NAMES portaudio.h
  13. DOC "The PortAudio include directory"
  14. )
  15. find_library(PORTAUDIO_LIBRARY
  16. NAMES portaudio
  17. DOC "The PortAudio library"
  18. )
  19. include(FindPackageHandleStandardArgs)
  20. find_package_handle_standard_args(PortAudio
  21. REQUIRED_VARS PORTAUDIO_LIBRARY PORTAUDIO_INCLUDE_DIR
  22. )
  23. if(PORTAUDIO_FOUND)
  24. set(PORTAUDIO_LIBRARIES ${PORTAUDIO_LIBRARY})
  25. set(PORTAUDIO_INCLUDE_DIRS ${PORTAUDIO_INCLUDE_DIR})
  26. endif()
  27. mark_as_advanced(PORTAUDIO_INCLUDE_DIR PORTAUDIO_LIBRARY)