Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

C++ base project using modern cmake ninja multi-config, vcpkg and visual studio(if you are on windows) OpenFolders for seamless workflow. For linux, add your build preset at the bottom of CMakePresets.json

Riztazz/OpenfoldersBaseProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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"

image

Wait until cmake generation is done and code away. If you want to launch app with debugger, you need to change this setting: image

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

About

C++ base project using modern cmake ninja multi-config, vcpkg and visual studio(if you are on windows) OpenFolders for seamless workflow. For linux, add your build preset at the bottom of CMakePresets.json

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published