Na ovoj stranici

Uređivanje vcpkg manifest datoteka

vcpkg.json Kada otvorite datoteku manifesta, ona se otvara u uređivaču manifestnih datoteka:

Datoteka vcpkg.json u uređivaču manifestnih datoteka

Dodajte pakete za upravljanje

Da biste dodali paket u svoj projekt:

  1. Odaberite Dodaj vcpkg paket (Add vcpkg Package) na alatnoj traci uređivača manifesta.

    Dodaj dijalog paketa vcpkg

  2. Odaberite paket koji želite dodati u svoj projekt.
  3. Odaberite OK da biste se vratili u uređivač.
  4. Ponovite postupak za dodavanje više paketa.

Generirajte kôd za CMake konfiguracijske datoteke

Za generiranje primjera CMake koda koji ćete kopirati u datoteku CMakeLists.txt:

  1. Odaberite CMake kod (CMake Code) na alatnoj traci urednika manifesta.

    Okvir za kod CMakea

  2. Odaberite primjer koda koji vam je potreban i kopirajte ga u datoteku CMakeLists.txt.

Postavite putanju do vcpkg-a

Da biste postavili putanju do direktorija u kojem ste instalirali vcpkg, odaberite Konfiguriraj (Configure) na alatnoj traci uređivača.

Vidi također vcpkg Package Manager i Create vcpkg manifest files.

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.