Vcpkg是一個(gè)微軟C++ 團(tuán)隊(duì)開發(fā)的在 Windows 上運(yùn)行的 C/C++ 項(xiàng)目包管理工具,可以幫助您在 Windows 平臺(tái)上獲取 C 和 C++ 庫,極大地簡化三方庫的獲取、安裝、使用和部署流程。
vcpkg 整合了 git,構(gòu)建系統(tǒng)整合的 CMake,而絕大多數(shù)的 C++ 項(xiàng)目都可以直接或者間接的方式使用 CMake創(chuàng)建原生項(xiàng)目文件并構(gòu)建.
vcpkg遵循一下原則:
開放源碼
無需安裝
支持重發(fā)構(gòu)建
自定義生成
社區(qū)參與貢獻(xiàn)
端口集成(與 BSD Ports 機(jī)制類似)
安裝教程
首先,我們的windows系統(tǒng)必須安裝有下列軟件
Visual Studio 2015 Update 3 or
Visual Studio 2017
CMake 3.8.0 or higher (note: downloaded automatically if not found)
git.exe available in your path
然后,我們?cè)趙indows命令行終端上運(yùn)行:
d:\git> git clone https://github.com/Microsoft/vcpkg
d:\git> cd vcpkg
d:\git\vcpkg> .\bootstrap-vcpkg.bat
d:\git\vcpkg> .\vcpkg integrate install