🛠️🐜 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
906 B

  1. # - Find SoundIO (sndio) includes and libraries
  2. #
  3. # SOUNDIO_FOUND - True if SOUNDIO_INCLUDE_DIR & SOUNDIO_LIBRARY are
  4. # found
  5. # SOUNDIO_LIBRARIES - Set when SOUNDIO_LIBRARY is found
  6. # SOUNDIO_INCLUDE_DIRS - Set when SOUNDIO_INCLUDE_DIR is found
  7. #
  8. # SOUNDIO_INCLUDE_DIR - where to find sndio.h, etc.
  9. # SOUNDIO_LIBRARY - the sndio library
  10. #
  11. find_path(SOUNDIO_INCLUDE_DIR
  12. NAMES sndio.h
  13. DOC "The SoundIO include directory"
  14. )
  15. find_library(SOUNDIO_LIBRARY
  16. NAMES sndio
  17. DOC "The SoundIO library"
  18. )
  19. include(FindPackageHandleStandardArgs)
  20. find_package_handle_standard_args(SoundIO
  21. REQUIRED_VARS SOUNDIO_LIBRARY SOUNDIO_INCLUDE_DIR
  22. )
  23. if(SOUNDIO_FOUND)
  24. set(SOUNDIO_LIBRARIES ${SOUNDIO_LIBRARY})
  25. set(SOUNDIO_INCLUDE_DIRS ${SOUNDIO_INCLUDE_DIR})
  26. endif()
  27. mark_as_advanced(SOUNDIO_INCLUDE_DIR SOUNDIO_LIBRARY)