build: link user32.lib when build with QMake and MSVC (#59)
* build(msvc): add test for qmake build with msvc under windows * fix(msvc): should link user32.lib under windows * Update README.md
This commit is contained in:
@ -82,3 +82,8 @@ RC_ICONS = assets/icons/app-icon.ico
|
||||
QMAKE_TARGET_PRODUCT = Pineapple Pictures
|
||||
QMAKE_TARGET_DESCRIPTION = Pineapple Pictures - Image Viewer
|
||||
QMAKE_TARGET_COPYRIGHT = MIT/Expat License - Copyright (C) 2020 Gary Wang
|
||||
|
||||
# MSVC only, since QMake doesn't have a CMAKE_CXX_STANDARD_LIBRARIES or cpp_winlibs similar thing
|
||||
win32-msvc* {
|
||||
LIBS += -luser32
|
||||
}
|
Reference in New Issue
Block a user