diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt index e134acabd3..b9956e8119 100644 --- a/Source/Core/Common/CMakeLists.txt +++ b/Source/Core/Common/CMakeLists.txt @@ -400,3 +400,7 @@ if(MSVC) # Add precompiled header target_link_libraries(common PRIVATE use_pch) endif() + +if(MINGW) + target_link_libraries(common PRIVATE qwave setupapi cfgmgr32) +endif() diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt index ba72d80a84..50f0c4ea32 100644 --- a/Source/Core/Core/CMakeLists.txt +++ b/Source/Core/Core/CMakeLists.txt @@ -836,6 +836,14 @@ if(MSVC) target_link_libraries(core PRIVATE use_pch) endif() +if(MINGW) + target_link_libraries(core + PRIVATE + bthprops + hid + ) +endif() + if(USE_RETRO_ACHIEVEMENTS) target_link_libraries(core PUBLIC rcheevos) target_compile_definitions(core PUBLIC -DUSE_RETRO_ACHIEVEMENTS)