Skip to content

mwthinker/cpp-generator-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-generator-cli CI build codecov License: MIT

A java application based on JDK 21 and maven. Implements a C++ generator CLI.

How to use

Generates a C++ project template based on cmake and vcpkg.

Usage of the generated binary file:

cppgen --help
Script to generate a CMake C++ project

Usage: cppgen [-cghotvV] [-d=DESCRIPTION] [-l=LICENSE] -n=NEW
C++ generator
  -c, --cmake             run cmake
  -d, --description=DESCRIPTION
                          short description used in the template
  -g, --gui               add gui library
  -h, --help              display a help message
  -l, --license=LICENSE   add MIT license with author
  -n, --new=NEW           the project name
  -o, --open              open visual studio solution
  -t, --test              add test
  -V, --version           display version info
  -v, --verbose           show verbose output

Example of generating a C++ project and open in Visual Studio C++ 2022:

cppgen.exe --new NewProject -o

A Visual Studio C++ 2022 solution should be opened and ready to be used. Assumes that vcpkg is installed and environment variable VCPKG_ROOT pointing to it. Visual Studio 2022 and CMake 3.24 must also be installed and available in the PATH environment variable.

License

MIT

About

Generate a C++ project using vcpkg

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published