diff options
author | Anonymous Maarten <anonymous.maarten@gmail.com> | 2020-12-06 19:12:35 +0100 |
---|---|---|
committer | shfil <filip.gawin@zoho.com> | 2021-01-11 11:24:25 +0100 |
commit | 8d0b4ede684df25e142b94fede4cbb15e4f6fb57 (patch) | |
tree | 92446485905b957c546b265f939b8ee06ca5d656 /src | |
parent | audio: only use #pragma comment(lib, "xxx.lib") on MSVC (diff) | |
download | re3-8d0b4ede684df25e142b94fede4cbb15e4f6fb57.tar re3-8d0b4ede684df25e142b94fede4cbb15e4f6fb57.tar.gz re3-8d0b4ede684df25e142b94fede4cbb15e4f6fb57.tar.bz2 re3-8d0b4ede684df25e142b94fede4cbb15e4f6fb57.tar.lz re3-8d0b4ede684df25e142b94fede4cbb15e4f6fb57.tar.xz re3-8d0b4ede684df25e142b94fede4cbb15e4f6fb57.tar.zst re3-8d0b4ede684df25e142b94fede4cbb15e4f6fb57.zip |
Diffstat (limited to '')
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 502255df..e943b908 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -40,19 +40,25 @@ if(RE3_AUDIO STREQUAL "OAL") find_package(OpenAL REQUIRED) target_include_directories(re3 PRIVATE ${OPENAL_INCLUDE_DIR}) target_link_libraries(re3 PRIVATE ${OPENAL_LIBRARY}) + target_compile_definitions(re3 PRIVATE ${OPENAL_DEFINITIONS}) target_compile_definitions(re3 PRIVATE AUDIO_OAL) elseif(RE3_AUDIO STREQUAL "MSS") target_compile_definitions(re3 PRIVATE AUDIO_MSS) endif() if(RE3_WITH_OPUS) + find_package(opusfile REQUIRED) + target_link_libraries(re3 PRIVATE + opusfile::opusfile + ) + target_compile_definitions(re3 PRIVATE AUDIO_OPUS) +else() find_package(mpg123 REQUIRED) find_package(SndFile REQUIRED) target_link_libraries(re3 PRIVATE MPG123::libmpg123 SndFile::SndFile ) - target_compile_definitions(re3 PRIVATE AUDIO_OPUS) endif() target_compile_definitions(re3 PRIVATE ) |