创建 vcpkg 清单文件
要创建新的 vcpkg 软件包管理器清单 (vcpkg.json) 文件,请
- 选择File >New File >vcpkg >vcpkg.json Manifest File >Choose ,打开Location 对话框。
- 在File name 中,输入清单文件的名称。
- 在Path 中,输入清单文件的路径。
- 选择Next ,打开vcpkg.json Manifest File 对话框。
- 在Name 中,输入清单文件的名称。
- 在Version string 中,输入文件的版本号。
- 在Dependencies 中,输入要管理的软件包。
您可以稍后在清单编辑器中添加软件包。
- 选择Next 打开Project Management 页面。
- 选择Finish 创建文件。
向导会自动将 vcpkg.json 文件添加到项目的 CMakeLists.txt 文件中。
另请参阅 vcpkg 包管理器和编辑 vcpkg 清单文件。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.