mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
openal-soft updates
This commit is contained in:
parent
d6f6bc65a5
commit
925d8b27cf
149 changed files with 22293 additions and 16887 deletions
|
|
@ -8,24 +8,30 @@
|
|||
# DSOUND_LIBRARY - the dsound library
|
||||
#
|
||||
|
||||
find_path(DSOUND_INCLUDE_DIR
|
||||
NAMES dsound.h
|
||||
PATHS "${DXSDK_DIR}"
|
||||
PATH_SUFFIXES include
|
||||
DOC "The DirectSound include directory"
|
||||
)
|
||||
if (WIN32)
|
||||
include(FindWindowsSDK)
|
||||
if (WINDOWSSDK_FOUND)
|
||||
get_windowssdk_library_dirs(${WINDOWSSDK_PREFERRED_DIR} WINSDK_LIB_DIRS)
|
||||
get_windowssdk_include_dirs(${WINDOWSSDK_PREFERRED_DIR} WINSDK_INCLUDE_DIRS)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# DSOUND_INCLUDE_DIR
|
||||
find_path(DSOUND_INCLUDE_DIR
|
||||
NAMES "dsound.h"
|
||||
PATHS "${DXSDK_DIR}" ${WINSDK_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES include
|
||||
DOC "The DirectSound include directory")
|
||||
|
||||
# DSOUND_LIBRARY
|
||||
find_library(DSOUND_LIBRARY
|
||||
NAMES dsound
|
||||
PATHS "${DXSDK_DIR}"
|
||||
PATHS "${DXSDK_DIR}" ${WINSDK_LIB_DIRS}
|
||||
PATH_SUFFIXES lib lib/x86 lib/x64
|
||||
DOC "The DirectSound library"
|
||||
)
|
||||
DOC "The DirectSound library")
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(DSound
|
||||
REQUIRED_VARS DSOUND_LIBRARY DSOUND_INCLUDE_DIR
|
||||
)
|
||||
find_package_handle_standard_args(DSound REQUIRED_VARS DSOUND_LIBRARY DSOUND_INCLUDE_DIR)
|
||||
|
||||
if(DSOUND_FOUND)
|
||||
set(DSOUND_LIBRARIES ${DSOUND_LIBRARY})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue