0.1.5 • Published 8 years ago
generator-cpp v0.1.5
C++ Project Generator
A Yeoman generator for C++ projects.
| Feature | Dependency | Version |
|---|---|---|
| Source Control | Git | 2.13.3 |
| Build & Packaging | CMake | 2.8.12 |
| Unit Testing | GoogleTest | 1.8.0 |
| Code Coverage | Lcov / Gcov | - |
| Documentation | Doxygen | 1.8.13 |
Dependencies
The following tools are required:
npm
Yeoman
npm install -g yoInstall
To install the generator:
npm install generator-cppSetup
Project
To interactively setup a project:
yo cppTo manually setup a project:
yo cpp --name "C++ Project" --author "Bob Marley" --email "bob@marley.com"To automatically setup a project:
yo cpp --autoClass
To interactively add a class:
yo cpp:classTo manually add a class:
yo cpp:class MyClassTo automatically add a class:
yo cpp:class --autoOther
To display help:
yo cpp --helpBuild
Both CMake (recommended) and Autoconf syntaxes are supported:
mkdir build && cd build
cmake ..
makeor...
./configure
makeTo run the tests:
make testTo run the code coverage analysis:
make coverageTo generate the documentation:
make docsTo install / uninstall:
make install
make uninstallCredits
Big thanks to: