* BugFix: Correct a few typos in the CMakeLists.txt.

* Feature: Mirror support for TORQUE_SFX_DirectX which appears to be
  broken anyway.
This commit is contained in:
Robert MacGregor 2022-05-31 07:08:18 -04:00
parent b1cba705b4
commit f395c7d9ee
2 changed files with 11 additions and 1 deletions

View file

@ -290,4 +290,4 @@ if (UNIX)
endif()
endif()
endforeach()
endif (APPLE)
endif (UNIX)

View file

@ -0,0 +1,10 @@
# OpenAL module
option(TORQUE_SFX_DIRECTX "Use DirectSound SFX" OFF)
if(TORQUE_SFX_DIRECTX AND WIN32)
message("Enabling DirectSound Module")
file(GLOB TORQUE_DSOUND_SOURCES "${CMAKE_SOURCE_DIR}/Engine/source/sfx/dsound/*.cpp" "${CMAKE_SOURCE_DIR}/Engine/source/sfx/xaudio/*.cpp")
set(TORQUE_SOURCE_FILES ${TORQUE_SOURCE_FILES} ${TORQUE_DSOUND_SOURCES})
endif(TORQUE_SFX_DIRECTX AND WIN32)