mingw: add required targets for linking

This commit is contained in:
Craig Carnell 2025-12-09 21:14:50 +00:00
parent 65b1337eba
commit fb608c06e9
2 changed files with 12 additions and 0 deletions

View File

@ -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()

View File

@ -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)