summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorAnonymous Maarten <anonymous.maarten@gmail.com>2021-01-03 16:30:45 +0100
committershfil <filip.gawin@zoho.com>2021-01-11 11:24:25 +0100
commite9adfd86636af27b98a314f3f42a0d3312063732 (patch)
tree4b1185a7e3bbb519b8cbff8e47eb816366d26fe0 /src/CMakeLists.txt
parentcmake: use openal/opusfile/mpg123/libsndfile correctly (diff)
downloadre3-e9adfd86636af27b98a314f3f42a0d3312063732.tar
re3-e9adfd86636af27b98a314f3f42a0d3312063732.tar.gz
re3-e9adfd86636af27b98a314f3f42a0d3312063732.tar.bz2
re3-e9adfd86636af27b98a314f3f42a0d3312063732.tar.lz
re3-e9adfd86636af27b98a314f3f42a0d3312063732.tar.xz
re3-e9adfd86636af27b98a314f3f42a0d3312063732.tar.zst
re3-e9adfd86636af27b98a314f3f42a0d3312063732.zip
Diffstat (limited to '')
-rw-r--r--src/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e943b908..a7c2a3d7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -36,6 +36,13 @@ target_compile_definitions(re3
RE3_NO_AUTOLINK
)
+if(LIBRW_PLATFORM_D3D9)
+ target_compile_definitions(re3
+ PUBLIC
+ USE_D3D9
+ )
+endif()
+
if(RE3_AUDIO STREQUAL "OAL")
find_package(OpenAL REQUIRED)
target_include_directories(re3 PRIVATE ${OPENAL_INCLUDE_DIR})
@@ -43,7 +50,9 @@ if(RE3_AUDIO STREQUAL "OAL")
target_compile_definitions(re3 PRIVATE ${OPENAL_DEFINITIONS})
target_compile_definitions(re3 PRIVATE AUDIO_OAL)
elseif(RE3_AUDIO STREQUAL "MSS")
+ find_package(MilesSDK REQUIRED)
target_compile_definitions(re3 PRIVATE AUDIO_MSS)
+ target_link_libraries(re3 PRIVATE MilesSDK::MilesSDK)
endif()
if(RE3_WITH_OPUS)