Common/CMake: Fix Windows build
This commit is contained in:
parent
c7dcba1c5f
commit
b5160ec685
|
@ -57,16 +57,8 @@ if(WIN32)
|
|||
)
|
||||
target_link_libraries(audiocommon PRIVATE audiocommon_xaudio27)
|
||||
|
||||
set(ENV{OPENALDIR} ${PROJECT_SOURCE_DIR}/Externals/OpenAL)
|
||||
# Dolphin loads openal32.dll at runtime
|
||||
find_package(OpenAL)
|
||||
if(OPENAL_FOUND)
|
||||
message(STATUS "OpenAL found, enabling OpenAL sound backend")
|
||||
target_sources(audiocommon PRIVATE OpenALStream.cpp)
|
||||
target_link_libraries(audiocommon PRIVATE OpenAL::OpenAL)
|
||||
else()
|
||||
message(STATUS "OpenAL NOT found in Externals")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_link_libraries(audiocommon PRIVATE cubeb SoundTouch FreeSurround)
|
||||
|
|
|
@ -69,6 +69,14 @@ if (APPLE)
|
|||
${COREFOUNDATION_LIBRARY}
|
||||
${IOK_LIBRARY}
|
||||
)
|
||||
elseif(WIN32)
|
||||
target_link_libraries(common
|
||||
PRIVATE
|
||||
kernel32.lib
|
||||
shlwapi.lib
|
||||
opengl32.lib
|
||||
winmm.lib
|
||||
)
|
||||
endif()
|
||||
|
||||
if(ANDROID)
|
||||
|
@ -78,6 +86,7 @@ if(ANDROID)
|
|||
)
|
||||
elseif(WIN32)
|
||||
target_sources(common PRIVATE
|
||||
LdrWatcher.cpp
|
||||
Logging/ConsoleListenerWin.cpp
|
||||
)
|
||||
else()
|
||||
|
|
Loading…
Reference in New Issue