An open API service indexing awesome lists of open source software.

https://github.com/gbmhunter/cpptemplate

A template repository to quick-start C++ development.
https://github.com/gbmhunter/cpptemplate

codecov coverage cplusplus cpp cpp14 example gtest jumpstart quickstart repository template travis-ci

Last synced: 2 months ago
JSON representation

A template repository to quick-start C++ development.

Awesome Lists containing this project

README

        

===========
CppTemplate
===========

-----------------------------------------------------------------------------------------
A template repository to quick-start C++ development.
-----------------------------------------------------------------------------------------

.. image:: https://travis-ci.org/gbmhunter/CppTemplate.svg?branch=master
:target: https://travis-ci.org/gbmhunter/CppTemplate

.. image:: https://codecov.io/gh/gbmhunter/CppTemplate/branch/master/graph/badge.svg
:target: https://codecov.io/gh/gbmhunter/CppTemplate

--------
Features
--------

- C++14 template/example project with example header files and source files
- CMake-based build system
- Automatic build script in ./tools/
- gtest-based unit tests (and a make target to automatically build/run unit tests)
- CI functionality using TravisCI (with sudo available on Ubuntu 14.04)
- Semantic versioning and keepachangelog.com-based Changelog format
- Doyxgen support (example :code:`doxygen.conf` file provided) coupled with GitHub pages support, see https://gbmhunter.github.io/CppTemplate/index.html for example documentation.
- Code coverage support using lcov and https://codecov.io. Code coverage is only generated for the files which matter, the source code in :code:`src/` and :code:`include/` directories.

---------------
Automatic Build
---------------

.. code:: bash

~/CppTemplate$ ./tools/build.sh

------------
Manual Build
------------

.. code:: bash

~/CppTemplate$ mkdir build
~/CppTemplate$ cd build/
~/CppTemplate/build$ cmake ..
~/CppTemplate/build$ make
~/CppTemplate/build$ make run_unit_tests
~/CppTemplate/build$ sudo make install

-------------------------
To Generate Documentation
-------------------------

.. code:: bash

~/CppTemplate$ doxygen doxygen.conf