Simplify some vector size range checks
[openal-soft.git] / cmake / FindDSound.cmake
blob36cdf4b56e7661f58edd1ba7c81225881b2c636f
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           PATHS "${DXSDK_DIR}/include"
13           NAMES dsound.h
14           DOC "The DirectSound include directory"
17 find_library(DSOUND_LIBRARY
18              PATHS "${DXSDK_DIR}/lib"
19              NAMES dsound
20              DOC "The DirectSound library"
23 include(FindPackageHandleStandardArgs)
24 find_package_handle_standard_args(DSound
25     REQUIRED_VARS DSOUND_LIBRARY DSOUND_INCLUDE_DIR
28 if(DSOUND_FOUND)
29     set(DSOUND_LIBRARIES ${DSOUND_LIBRARY})
30     set(DSOUND_INCLUDE_DIRS ${DSOUND_INCLUDE_DIR})
31 endif()
33 mark_as_advanced(DSOUND_INCLUDE_DIR DSOUND_LIBRARY)