På denne side

Rediger vcpkg-manifestfiler

Når du åbner en vcpkg.json -fil, åbnes den i vcpkg -manifestfilredigeringsprogrammet:

vcpkg.json-filen i manifestfileditoren

Tilføj pakker, der skal administreres

Sådan tilføjer du en pakke til dit projekt:

  1. Vælg " Tilføj vcpkg-pakke " (Add vcpkg Package) på værktøjslinjen i manifesteditoren.

    Dialogboksen »Tilføj vcpkg-pakke«

  2. Vælg den pakke, der skal tilføjes til dit projekt.
  3. Vælg OK for at vende tilbage til redigeringsprogrammet.
  4. Gentag for at tilføje flere pakker.

Generer kode til CMake-konfigurationsfiler

Sådan genereres eksempelkode til CMake, som kan kopieres til filen CMakeLists.txt:

  1. Vælg " CMake-kode " (CMake Code) på værktøjslinjen i manifesteditoren.

    Dialogboksen »CMake-kode«

  2. Vælg den eksempelkode, du har brug for, og kopier og indsæt den i filen CMakeLists.txt.

Indstil stien til vcpkg

For at angive stien til det bibliotek, hvor du har installeret vcpkg, skal du vælge " knappen »Indstillinger« " (Configure) på redigeringsværktøjslinjen.

Se også Konfigurer vcpkg-pakkehåndteringen og Opret 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.