mirror of
https://github.com/love2d/megasource.git
synced 2026-08-16 16:21:13 +02:00
34 lines
943 B
CMake
34 lines
943 B
CMake
# - Find DirectSound includes and libraries
|
|
#
|
|
# DSOUND_FOUND - True if DSOUND_INCLUDE_DIR & DSOUND_LIBRARY are found
|
|
# DSOUND_LIBRARIES - Set when DSOUND_LIBRARY is found
|
|
# DSOUND_INCLUDE_DIRS - Set when DSOUND_INCLUDE_DIR is found
|
|
#
|
|
# DSOUND_INCLUDE_DIR - where to find dsound.h, etc.
|
|
# DSOUND_LIBRARY - the dsound library
|
|
#
|
|
|
|
find_path(DSOUND_INCLUDE_DIR
|
|
PATHS "${DXSDK_DIR}/include"
|
|
NAMES dsound.h
|
|
DOC "The DirectSound include directory"
|
|
)
|
|
|
|
find_library(DSOUND_LIBRARY
|
|
PATHS "${DXSDK_DIR}/lib"
|
|
NAMES dsound
|
|
DOC "The DirectSound library"
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(DSound
|
|
REQUIRED_VARS DSOUND_LIBRARY DSOUND_INCLUDE_DIR
|
|
)
|
|
|
|
if(DSOUND_FOUND)
|
|
set(DSOUND_LIBRARIES ${DSOUND_LIBRARY})
|
|
set(DSOUND_INCLUDE_DIRS ${DSOUND_INCLUDE_DIR})
|
|
endif()
|
|
|
|
mark_as_advanced(DSOUND_INCLUDE_DIR DSOUND_LIBRARY)
|