Skip to content
Permalink
Browse files

Common/CMake: Fix Windows build

  • Loading branch information...
spycrab committed May 8, 2019
1 parent c7dcba1 commit b5160ec6854d6ee42f3040b1ecb4609c493230e8
Showing with 10 additions and 9 deletions.
  1. +1 −9 Source/Core/AudioCommon/CMakeLists.txt
  2. +9 −0 Source/Core/Common/CMakeLists.txt
@@ -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()
target_sources(audiocommon PRIVATE OpenALStream.cpp)
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()

0 comments on commit b5160ec

Please sign in to comment.
You can’t perform that action at this time.