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.
- Host: GitHub
- URL: https://github.com/elibroftw/cpp-vcpkg-cmake-example
- Owner: elibroftw
- License: cc0-1.0
- Created: 2021-12-18T00:52:56.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-28T22:12:55.000Z (about 3 years ago)
- Last Synced: 2025-05-28T12:44:58.587Z (5 months ago)
- Topics: cmake, cmakelists, cpp, cross-platform, linux, macos, make, tutorial, vcpkg, visual-studio, visual-studio-code, windows
- Language: C++
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 CodeTweak 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
## Trouble Shooting
Delete CMake cache and reconfigure