vcpkg is a command-line package manager for C++. It greatly simplifies the acquisition and installation of third-party libraries on Windows, Linux, and MacOS. If your project uses third-party libraries, we recommend that you use vcpkg to install them. vcpkg supports both open-source and proprietary libraries. All libraries in the vcpkg Windows catalog have been tested for compatibility with Visual Studio 2015, Visual Studio 2017, and Visual Studio 2019. Between the Windows and Linux/MacOS catalogs, vcpkg now supports over 1900 libraries. The C++ community is adding more libraries to both catalogs on an ongoing basis.
打开powershell
git clone https://github.com/Microsoft/vcpkg.git
进入
cd vcpkg
启动
powershell -exec bypass scripts\bootstrap.ps1
user-wide整合(初次执行需要管理员权限)
./vcpkg.exe integrate install
安装库
./vcpkg.exe install your_package_name:x64-windows
默认是32位,这里如果需要64位,需要单独指定。