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)
|
target_link_libraries(audiocommon PRIVATE audiocommon_xaudio27)
|
||||||
|
|
||||||
set(ENV{OPENALDIR} ${PROJECT_SOURCE_DIR}/Externals/OpenAL)
|
|
||||||
# Dolphin loads openal32.dll at runtime
|
# Dolphin loads openal32.dll at runtime
|
||||||
find_package(OpenAL)
|
target_sources(audiocommon PRIVATE OpenALStream.cpp)
|
||||||
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()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(audiocommon PRIVATE cubeb SoundTouch FreeSurround)
|
target_link_libraries(audiocommon PRIVATE cubeb SoundTouch FreeSurround)
|
||||||
|
|
|
@ -69,6 +69,14 @@ if (APPLE)
|
||||||
${COREFOUNDATION_LIBRARY}
|
${COREFOUNDATION_LIBRARY}
|
||||||
${IOK_LIBRARY}
|
${IOK_LIBRARY}
|
||||||
)
|
)
|
||||||
|
elseif(WIN32)
|
||||||
|
target_link_libraries(common
|
||||||
|
PRIVATE
|
||||||
|
kernel32.lib
|
||||||
|
shlwapi.lib
|
||||||
|
opengl32.lib
|
||||||
|
winmm.lib
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
|
@ -78,6 +86,7 @@ if(ANDROID)
|
||||||
)
|
)
|
||||||
elseif(WIN32)
|
elseif(WIN32)
|
||||||
target_sources(common PRIVATE
|
target_sources(common PRIVATE
|
||||||
|
LdrWatcher.cpp
|
||||||
Logging/ConsoleListenerWin.cpp
|
Logging/ConsoleListenerWin.cpp
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in New Issue