FindSndIO.cmake 823 B

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