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

@ -48,6 +48,9 @@ $ cmake --build . # 如果你使用 Makefile 作为 CMake 生成器,也可以
此应用的图片格式支持依赖于 Qt 的 imageformats 插件,直接从您所用的发行版获取对应的图像格式插件即可。对于 Windows 用户,您可能需要手动构建和使用图像格式插件。下方给出了进一步的说明。
> **Note**
> 尽管存在一个可用于 QMake 构建的 `pineapple-pictures.pro` 文件,但其仅供简单测试所用且其并不包含 `exiv2` 支持。使用 QMake 构建此项目是 **不受支持** 的,请尽可能考虑使用 CMake。
### Linux
常规的构建步骤即可完成构建,不需要额外的处理步骤 ;)