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 | 1.13 |
| Documentation | Doxygen | 1.8.13 |
The following tools are required:
npm install -g yoTo install the generator:
npm install generator-cppTo interactively setup a project:
yo cppTo manually setup a project:
yo cpp --name "C++ Project" --author "Bob Marley" --email "bob@marley.com"Available options are:
--name "C++ Project"--author "Bob Marley"--email "bob@marley.com"--coverage
To automatically setup a project:
yo cpp --autoNote that automatic and manual modes can be used together:
yo cpp --auto --name "C++ Project" --coverageTo interactively add a class:
yo cpp:classTo manually add a class:
yo cpp:class MyClassTo automatically add a class:
yo cpp:class --autoTo display help:
yo cpp --helpBoth 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 uninstallBig thanks to: