c-bones
A yeoman generator for C++
projects using Meson.
Introduction
c-bones
is a yeoman
generator for C++-projects that use Meson as build tool. c-bones
creates a project that uses
- a prototype
meson.build
file that usesBoost
as dependency, - a custom
valgrindrc
and an oppinioatedclang-format
- badges for the project status, build status using Travis CI and code coverage,
- a prototype
main.cpp
and test suite file, - custom README.md, TODO.md and VERSIONS.md files,
- standard software development config and GitHib files like
travis.yml
,codecov.yml
,gitignore
andgitattributes
, - a GPL3 license.
The resulting folder-structure looks like this:
|____.clang-format |____.codecov.yml |____.gitattributes |____.gitignore |____.travis.yml |____.valgrindrc |____.yo-rc.json |____LICENSE |____README.md |____VERSIONS.md |____TODO.md |____meson.build |____src | |____clazz.hpp | |____clazz.cpp | |____main.cpp |____tests | |____test_clazz.cpp | |____test.cpp
Installation
Yeoman comes with npm
, so install it first and then call:
npm install -g yo npm install -g generator-c-bones
Once you have the package, you can create a scaffold using:
yo c-bones
This builds the skeleton. Afterwards modify the sources and build your project.
Author
- Simon Dirmeier simon.dirmeier@web.de