Always mix to the real output for DirectChannels
[openal-soft.git] / cmake / FindDSound.cmake
blob0ddf98aad51df37a0332d60614fd5af0e73d5995
1 # - Find DirectSound includes and libraries
3 #   DSOUND_FOUND        - True if DSOUND_INCLUDE_DIR & DSOUND_LIBRARY are found
4 #   DSOUND_LIBRARIES    - Set when DSOUND_LIBRARY is found
5 #   DSOUND_INCLUDE_DIRS - Set when DSOUND_INCLUDE_DIR is found
7 #   DSOUND_INCLUDE_DIR - where to find dsound.h, etc.
8 #   DSOUND_LIBRARY     - the dsound library
11 find_path(DSOUND_INCLUDE_DIR
12           NAMES dsound.h
13           PATHS "${DXSDK_DIR}"
14           PATH_SUFFIXES include
15           DOC "The DirectSound include directory"
18 find_library(DSOUND_LIBRARY
19              NAMES dsound
20              PATHS "${DXSDK_DIR}"
21              PATH_SUFFIXES lib lib/x86 lib/x64
22              DOC "The DirectSound library"
25 include(FindPackageHandleStandardArgs)
26 find_package_handle_standard_args(DSound
27     REQUIRED_VARS DSOUND_LIBRARY DSOUND_INCLUDE_DIR
30 if(DSOUND_FOUND)
31     set(DSOUND_LIBRARIES ${DSOUND_LIBRARY})
32     set(DSOUND_INCLUDE_DIRS ${DSOUND_INCLUDE_DIR})
33 endif()
35 mark_as_advanced(DSOUND_INCLUDE_DIR DSOUND_LIBRARY)