2 # Find the alsa libraries (asound)
4 # This module defines the following variables:
5 # ALSA_FOUND - True if ALSA_INCLUDE_DIR & ALSA_LIBRARY are found
6 # ALSA_LIBRARIES - Set when ALSA_LIBRARY is found
7 # ALSA_INCLUDE_DIRS - Set when ALSA_INCLUDE_DIR is found
9 # ALSA_INCLUDE_DIR - where to find asoundlib.h, etc.
10 # ALSA_LIBRARY - the asound library
13 find_path(ALSA_INCLUDE_DIR NAMES asoundlib.h
15 DOC "The ALSA (asound) include directory"
18 find_library(ALSA_LIBRARY NAMES asound
19 DOC "The ALSA (asound) library"
22 # handle the QUIETLY and REQUIRED arguments and set ALSA_FOUND to TRUE if
23 # all listed variables are TRUE
24 include(FindPackageHandleStandardArgs)
25 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ALSA DEFAULT_MSG ALSA_LIBRARY ALSA_INCLUDE_DIR)
28 set( ALSA_LIBRARIES ${ALSA_LIBRARY} )
29 set( ALSA_INCLUDE_DIRS ${ALSA_INCLUDE_DIR} )
32 mark_as_advanced(ALSA_INCLUDE_DIR ALSA_LIBRARY)