mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
openal-soft updates
This commit is contained in:
parent
d6f6bc65a5
commit
925d8b27cf
149 changed files with 22293 additions and 16887 deletions
|
|
@ -2,8 +2,10 @@
|
|||
#
|
||||
# OSS_FOUND - True if OSS_INCLUDE_DIR is found
|
||||
# OSS_INCLUDE_DIRS - Set when OSS_INCLUDE_DIR is found
|
||||
# OSS_LIBRARIES - Set when OSS_LIBRARY is found
|
||||
#
|
||||
# OSS_INCLUDE_DIR - where to find sys/soundcard.h, etc.
|
||||
# OSS_LIBRARY - where to find libossaudio (optional).
|
||||
#
|
||||
|
||||
find_path(OSS_INCLUDE_DIR
|
||||
|
|
@ -11,11 +13,21 @@ find_path(OSS_INCLUDE_DIR
|
|||
DOC "The OSS include directory"
|
||||
)
|
||||
|
||||
find_library(OSS_LIBRARY
|
||||
NAMES ossaudio
|
||||
DOC "Optional OSS library"
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(OSS REQUIRED_VARS OSS_INCLUDE_DIR)
|
||||
|
||||
if(OSS_FOUND)
|
||||
set(OSS_INCLUDE_DIRS ${OSS_INCLUDE_DIR})
|
||||
if(OSS_LIBRARY)
|
||||
set(OSS_LIBRARIES ${OSS_LIBRARY})
|
||||
else()
|
||||
unset(OSS_LIBRARIES)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
mark_as_advanced(OSS_INCLUDE_DIR)
|
||||
mark_as_advanced(OSS_INCLUDE_DIR OSS_LIBRARY)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue