https://github.com/mwthinker/cpp-generator-cli
Generate a C++ project using vcpkg
https://github.com/mwthinker/cpp-generator-cli
cli cmake cpp java vcpkg
Last synced: 6 months ago
JSON representation
Generate a C++ project using vcpkg
- Host: GitHub
- URL: https://github.com/mwthinker/cpp-generator-cli
- Owner: mwthinker
- License: mit
- Created: 2023-01-01T12:12:26.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-11-12T20:32:44.000Z (8 months ago)
- Last Synced: 2025-11-12T21:22:13.579Z (8 months ago)
- Topics: cli, cmake, cpp, java, vcpkg
- Language: Java
- Homepage:
- Size: 109 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cpp-generator-cli [](https://github.com/mwthinker/cpp-generator-cli/actions/workflows/ci.yml) [](https://codecov.io/gh/mwthinker/cpp-generator-cli) [](https://opensource.org/licenses/MIT)
A java application based on JDK 25 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:
```bash
cppgen --help
Script to generate a CMake C++ project
Usage: cppgen [-cghkotvV] [-d=DESCRIPTION] [-l=LICENSE] [PROJECT_NAME]
C++ generator using CMake
[PROJECT_NAME] The project name.
-c, --cmake Run cmake.
-d, --description=DESCRIPTION
Short description set in CMakeLists.txt.
-g, --gui Add gui library.
-h, --help Display this help message.
-k, --keepFiles Keep generated files on error.
-l, --license=LICENSE Add MIT license with author.
-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:
```bash
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.24v must also be installed and available in the PATH environment variable.
## License
MIT