An open API service indexing awesome lists of open source software.

https://github.com/elibroftw/cpp-vcpkg-cmake-example

A C++ project that is platform and IDE agnostic made possible by using vcpkg and cmake.
https://github.com/elibroftw/cpp-vcpkg-cmake-example

cmake cmakelists cpp cross-platform linux macos make tutorial vcpkg visual-studio visual-studio-code windows

Last synced: 2 months ago
JSON representation

A C++ project that is platform and IDE agnostic made possible by using vcpkg and cmake.

Awesome Lists containing this project

README

          

# C++ Vcpkg CMake Example

A C++ sample project that is platform and IDE agnostic made possible by using Vcpkg and CMake.

## Building and Development

### Prerequisites

- Requires `vcpkg` installed (and on PATH)
- Requires `VCPKG_ROOT` and `VCPKG_DEFAULT_TRIPLET` to be defined in environment variables
- Requires `cmake` 3.21+ installed (and on PATH)
- IDE: Visual Studio 2022 or Visual Studio Code

### Building

1. Clone the repository and make it the current working directory
2. Run `vcpkg "@./vcpkg_rf.txt"`
3. Click Build in Visual Studio or `Build: Target` in the command palette of Visual Studio Code

Tweak any step if it isn't on point.

## Tutorials

### [Blog Post] Installing Libraries for C++ with Vcpkg and CMake

[https://blog.elijahlopez.ca/posts/vcpkg-cmake-tutorial/](https://blog.elijahlopez.ca/posts/vcpkg-cmake-tutorial/)

### [Youtube Video] Installing and Setting up Vcpkg



Installing Libraries in C++ via CMake and Vcpkg


## Trouble Shooting

Delete CMake cache and reconfigure