使得任意C/C++项目可以使用安装的模块
包仓库网页:https://vcpkg.io/en/packages?query=
#进入安装vcpkg的目录,假设为:D:/Soft/boost
git clone https://github.com/microsoft/vcpkg
cd D:/Soft/boost/vcpkg
./bootstrap-vcpkg.bat
#全局集成
vcpkg.exe integrate install
#安装模块
vcpkg install boost-beast opensslVS 会自动把 vcpkg 的包含目录/库目录注入到 MSBuild 环境。
对 .sln/.vcxproj 工程,直接
#include <boost/...>使用即可
#include <iostream>
#include <boost/beast/core.hpp>
int main()
{
std::cout << BOOST_LIB_VERSION << std::endl;
}