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:
Gary Wang
2022-05-29 01:06:00 +08:00
committed by GitHub
parent a2d8a0cd12
commit b033370d8e
4 changed files with 41 additions and 0 deletions

View File

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