Na ovoj stranici

Uređivanje vcpkg manifest datoteka

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

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

Dodaj pakete za upravljanje

Za dodavanje paketa u 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 se vratite 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 datotek CMakeLists.txt:

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

    CMake dijalog koda

  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 gumb Postavke (Configure) na alatnoj traci uređivača.

Vidi također Postavljanje upravitelja paketa vcpkg i Izrada manifestnih datoteka 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.