Skip to content

evpo/cpp-project-template

Repository files navigation

CircleCI

C++ Project Template

This is a template for your new C++ project. It's a good starting point for a tool or proof of concept. Download and start hacking.

wget -O - https://github.com/evpo/cpp-project-template/archive/master.tar.gz | tar xzvf -
mv cpp-project-template-master hello_world
cd hello_world
git init .
git add -A
git commit -m "initial commit"

You can also use this script to automate creation of new projects.

Features

  • Help and command line parameters
  • Simple to understand makefile build
  • CLI front-end and a back-end library
  • Diagnostic logging
  • Unit tests
  • Multiplatform: Linux, Windows, macOS
  • Almost no dependencies

Demo

asciicast

Compile

Build:

make

Release:

make RELEASE=on

Verbose:

make VERBOSE=on

Clean:

make clean

Tests:

make tests

Run

CLI:

./bin/debug/cpp-project

Unit tests:

./bin/debug/cpp-project-tests

System requirements

Linux
macOS
Mingw
C++11 g++ or clang

Acknowledgments

  1. stlplus
  2. gtest
  3. plog

License

Creative Commons BSD License