Opret vcpkg-manifestfiler

Sådan opretter du en ny vcpkg -pakkehåndteringsmanifestfil (vcpkg.json):

  1. Vælg File > New File > vcpkg > vcpkg.json Manifest File > Choose for at åbne dialogboksen Location.
  2. I File name skal du indtaste et navn til manifestfilen.
  3. I Path skal du indtaste stien til manifestfilen.
  4. Vælg " Next " for at åbne dialogboksen " vcpkg.json Manifest File ".

    Dialogboksen »vcpkg.json-manifestfil«

  5. I feltet " Name" skal du indtaste et navn til manifestfilen.
  6. I feltet " Version string" skal du indtaste et versionsnummer for filen.
  7. I " Dependencies" skal du indtaste de pakker, der skal administreres.

    Du kan tilføje pakker senere i en manifesteditor.

  8. Vælg " Next " for at åbne siden " Project Management ".
  9. Vælg " Finish " for at oprette filen.

Guiden tilføjer automatisk filen " vcpkg.json " til projektets " CMakeLists.txt "-fil.

Se også Konfigurer vcpkg-pakkehåndteringen og Rediger vcpkg-manifestfiler.

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.