Utwórz pliki manifestu vcpkg

Aby utworzyć nowy plik manifestu menedżera pakietów vcpkg (vcpkg.json):

  1. Wybierz opcję „ File ” > „ New File ” > „ vcpkg ” > „ vcpkg.json Manifest File ” > „ Choose ”, aby otworzyć okno dialogowe „ Location ”.
  2. W polu „ File name ” wprowadź nazwę pliku manifestu.
  3. W polu „ Path ” wprowadź ścieżkę do pliku manifestu.
  4. Wybierz opcję „ Next ”, aby otworzyć okno dialogowe „ vcpkg.json Manifest File ”.

    Okno dialogowe pliku manifestu vcpkg.json

  5. W polu „ Name ” wprowadź nazwę pliku manifestu.
  6. W polu „ Version string ” wprowadź numer wersji pliku.
  7. W oknie „ Dependencies ” wprowadź pakiety, którymi chcesz zarządzać.

    Pakiety można dodać później w edytorze manifestu.

  8. Wybierz opcję „ Next ”, aby otworzyć stronę „ Project Management ”.
  9. Wybierz opcję „ Finish ”, aby utworzyć plik.

Kreator automatycznie dodaje plik „ vcpkg.json ” do pliku „ CMakeLists.txt ” projektu.

Zobacz także: Konfiguracja menedżera pakietów vcpkg oraz Edycja plików manifestu 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.