A Small Utility App For C/CPP and CMake users.
git clone https://github.com/Eshanatnight/plus.git
cd plus
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE="<path>/<to>/<vcpkg>/scripts/buildsystems/vcpkg.cmake" -DCMAKE_BUILD_TYPE=Release -G<generator> -S.. -B .
cmake --build . --config Release
Download the premake5 executable. Then use
premake5 <generator>
As of the current MSVC 26.05.22
,
Currently for full support for std::ranges
we need to use /std:c++latest
which is directly not accessible from cmake.
For MSVC we have to set the standard to 23. (This is reflected in the CMakeLists.txt file) Other compilers might need to modify the CMakeLists.txt file to set the standard to the latest or even the latest c++20.
More Information here
Keyword | Command |
---|---|
plus init |
Initialize a project repository in the current path |
plus new "Project_Name" |
Create a new Project in a new directory in the curent path |
plus help |
Show this help message |
- Initialize a git repository
- add a .gitignore file
- add a .gitattribute file
- add a CMakeLists.txt file
- create an output directory
- Add Ranges-v3 for Clang/GNU Compilers.