mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
fix
This commit is contained in:
parent
c0c8694114
commit
2304dce93c
2 changed files with 1 additions and 31 deletions
|
|
@ -1,30 +0,0 @@
|
||||||
# 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")
|
|
||||||
else()
|
|
||||||
message(FATAL_ERROR "Unsupported OpenAL platform.")
|
|
||||||
endif (APPLE)
|
|
||||||
|
|
||||||
set(TORQUE_LINK_LIBRARIES ${TORQUE_LINK_LIBRARIES} OpenAL)
|
|
||||||
|
|
||||||
# Since OpenAL lives elsewhere we need to ensure it is known to Torque when providing a link to it
|
|
||||||
set(ALSOFT_EXAMPLES OFF CACHE BOOL "OpenAL Examples" FORCE)
|
|
||||||
set(ALSOFT_UTILS OFF CACHE BOOL "OpenAL Utilities" FORCE)
|
|
||||||
set(ALSOFT_UPDATE_BUILD_VERSION OFF CACHE BOOL "Update build Version" UPDATE)
|
|
||||||
|
|
||||||
add_subdirectory("${TORQUE_LIB_ROOT_DIRECTORY}/openal-soft" ${TORQUE_LIB_TARG_DIRECTORY}/openal-soft EXCLUDE_FROM_ALL)
|
|
||||||
if(APPLE)
|
|
||||||
target_compile_options(OpenAL PRIVATE -Wno-error=undef)
|
|
||||||
endif()
|
|
||||||
endif(TORQUE_SFX_OPENAL)
|
|
||||||
|
|
@ -97,7 +97,7 @@ set(TORQUE_COMPILE_DEFINITIONS ICE_NO_DLL PCRE_STATIC TORQUE_ADVANCED_LIGHTING T
|
||||||
TORQUE_UNICODE UNICODE _UNICODE)
|
TORQUE_UNICODE UNICODE _UNICODE)
|
||||||
|
|
||||||
# All link libraries. Modules should append to this the path to specify additional link libraries (.a, .lib, .dylib, .so)
|
# All link libraries. Modules should append to this the path to specify additional link libraries (.a, .lib, .dylib, .so)
|
||||||
set(TORQUE_LINK_LIBRARIES png_static tinyxml2 collada squish opcode assimp SDL2 glad pcre convexMath zlib)
|
set(TORQUE_LINK_LIBRARIES collada squish opcode glad convexMath)
|
||||||
|
|
||||||
if(TORQUE_TESTING)
|
if(TORQUE_TESTING)
|
||||||
set(TORQUE_LINK_LIBRARIES ${TORQUE_LINK_LIBRARIES} gtest gmock)
|
set(TORQUE_LINK_LIBRARIES ${TORQUE_LINK_LIBRARIES} gtest gmock)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue