mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-06 20:24:33 +00:00
uses local cache for assets now so should be able to produce an offline build with vcpkg. Only a couple of libraries left that are too big, and the vcpkg repo itself has files that are blocked from the repo. We could get around both issues by utilizing a submodule
16 lines
No EOL
641 B
CMake
16 lines
No EOL
641 B
CMake
# OpenAL module
|
|
option(TORQUE_SFX_OPENAL "Use OpenAL SFX" ON)
|
|
|
|
if(TORQUE_SFX_OPENAL)
|
|
message("Enabling OpenAL Module")
|
|
torqueAddSourceDirectories("${CMAKE_SOURCE_DIR}/Engine/source/sfx/openal")
|
|
if (APPLE)
|
|
torqueAddSourceDirectories("${CMAKE_SOURCE_DIR}/Engine/source/sfx/openal/mac")
|
|
elseif (WIN32)
|
|
torqueAddSourceDirectories("${CMAKE_SOURCE_DIR}/Engine/source/sfx/openal/win32")
|
|
elseif (UNIX)
|
|
torqueAddSourceDirectories("${CMAKE_SOURCE_DIR}/Engine/source/sfx/openal/linux")
|
|
endif()
|
|
find_package(OpenAL CONFIG REQUIRED)
|
|
set(TORQUE_LINK_THIRDPARTY ${TORQUE_LINK_THIRDPARTY} OpenAL::OpenAL)
|
|
endif(TORQUE_SFX_OPENAL) |