Nastavite upravitelja paketov vcpkg
Eksperimentalni vtičnik vcpkg vključuje upravitelja paketov vcpkg za jezika C in C++. Na voljo je na vseh podprtih razvojnih platformah.
Ustvarite in urejajte datoteke ` vcpkg.json `, da določite pakete, ki jih želite zgraditi kot del vašega projekta, ko uporabljate CMake kot sistem za gradnjo.
Opomba: Vtičnik Vcpkgmorate omogočiti , da ga lahko uporabljate.
Nastavite vcpkg
Za nastavitev vcpkg iz ukazne vrstice vnesite:
$ git clone https://github.com/microsoft/vcpkg $ cd vcpkg $ ./bootstrap-vcpkg.sh
Nastavite pot do vcpkg
Če želite nastaviti Path v imenik, v katerega ste namestili vcpkg, izberite » Preferences « > » CMake « > » Vcpkg «.

Izberite »
«, da prenesete vcpkg, če ga še niste namestili.
Izklopite samodejno nastavitev
Privzeto je vcpkg samodejno nastavljen za uporabo s CMake. Če želite izklopiti samodejno nastavitev, izberite Preferences > CMake > General > Package manager auto setup.

Glejte tudi Ustvarjanje manifestnih datotek vcpkg, Urejanje manifestnih datotek vcpkg, Vklop in izklop vtičnikov, Podprte platforme in 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.