Archive reason: This project is far superior as it doesn't require VCPKG_ROOT enviromental variable https://github.com/bitmeal/vcpkg-cmake-integration
Base C++ project utilizing vcpkg, CMake ninja multi-config and VS open folders if on windows.
You can finally add files, folders and work on your project from within IDE without the need to edit cmake files!
Automatically detects changes in CMake files and rebuilds project if needed
Consume libraries from VCPKG, with fmt example in vcpkg.json and /src/CMakeLists.txt
It also has support for custom vcpkg ports, which goes to .vcpkg (otherwise known as VCPKG registries) folder - this project doesn't show how to use those though
Requirements:
- environment variable named VCPKG_ROOT and the value should be a path to where vcpkg is installed.
- CMake 3.20 and above
On windows, simply right-click in root folder of the repository and select option "Open with Visual Studio"
Wait until cmake generation is done and code away. If you want to launch app with debugger, you need to change this setting:
to whatever your project is named - in my case OpenfoldersBaseProject.exe
On linux, i assume you know what you're doing. You need to add a linux build preset in CMakePresets.json and execute cmake preset via command
Consider buying me a coffee if you found it useful
https://www.buymeacoffee.com/Riztazz