diff --git a/Engine/source/CMakeLists.txt b/Engine/source/CMakeLists.txt index 1bd46e247..951c68347 100644 --- a/Engine/source/CMakeLists.txt +++ b/Engine/source/CMakeLists.txt @@ -290,4 +290,4 @@ if (UNIX) endif() endif() endforeach() -endif (APPLE) \ No newline at end of file +endif (UNIX) \ No newline at end of file diff --git a/Tools/CMake/modules/dsound.cmake b/Tools/CMake/modules/dsound.cmake new file mode 100644 index 000000000..226c73728 --- /dev/null +++ b/Tools/CMake/modules/dsound.cmake @@ -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)