# - Find SoundIO (sndio) includes and libraries # # Sndio_FOUND - True if SNDIO_INCLUDE_DIR & SNDIO_LIBRARY are # found # SNDIO_LIBRARIES - Set when SNDIO_LIBRARY is found # SNDIO_INCLUDE_DIRS - Set when SNDIO_INCLUDE_DIR is found # # SNDIO_INCLUDE_DIR - where to find sndio.h, etc. # SNDIO_LIBRARY - the sndio library # find_path(SNDIO_INCLUDE_DIR NAMES sndio.h DOC "The SoundIO include directory" ) find_library(SNDIO_LIBRARY NAMES sndio DOC "The SoundIO library" ) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Sndio REQUIRED_VARS SNDIO_LIBRARY SNDIO_INCLUDE_DIR ) if(Sndio_FOUND) set(SNDIO_LIBRARIES ${SNDIO_LIBRARY}) set(SNDIO_INCLUDE_DIRS ${SNDIO_INCLUDE_DIR}) endif() mark_as_advanced(SNDIO_INCLUDE_DIR SNDIO_LIBRARY)