SnekCode / CPP-vcpkg-vscode-example

a C++example in visual studio code for using vcpkg manager and cmake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example of a simple CLI application utilizing the vcpkg manager.

Setup

Install extensions for VSCODE:

Install VCPKG

  • Follow install steps
  • Set the VCPKG_ROOTenv variable.
    • It is referenced in CMakeUserPresets.json and CMakePresets.json

Running

  • Command Palette CMake: Build to build.
  • Command Palette CMake: Run Without Debugging to build and then run the target.
  • Command Palette CMake: Debug to build and then run the target in debug.

Alternatively the CMake Extension offers quick action buttons at the bottom of VSCode in the status bar.

About

a C++example in visual studio code for using vcpkg manager and cmake


Languages

Language:CMake 76.4%Language:C++ 23.6%