Home

Awesome

cpp-skeleton

Travis CI Linux Build Status AppVeyor Windows Build status

A simple skeleton for C++ development with CMake and Google Test.

Copyright (c) 2013-2018 Sébastien Rombauts (sebastien.rombauts@gmail.com)

Building & testing with CMake

Get Google Test submodule

git submodule init
git submodule update

Typical generic build (see also "build.bat" or "./build.sh")

mkdir build
cd build
cmake ..        # cmake .. -G "Visual Studio 15 2017 Win64" # for a  64 bits solution using Visual Studio 2017
cmake --build . # make
ctest .         # make test

Debug build for Unix Makefiles

mkdir Debug
cd Debug
cmake .. -DCMAKE_BUILD_TYPE=Debug   # -G "Unix Makefiles"
cmake --build . # make
ctest .         # make test

Release build

mkdir Release
cd Release
cmake .. -DCMAKE_BUILD_TYPE=Release  # -G "Unix Makefiles"
cmake --build . # make
ctest .         # make test

Continuous Integration

This project is continuously tested under Ubuntu 14.04 "Trusty" Linux with gcc 4.8.4 and clang 5.0.0 compilers using the Travis CI community service with the above CMake building and testing procedure.

It is also tested in the same way under Windows with Visual Studio 14 2015 compiler using the AppVeyor countinuous integration service.

Detailed results can be seen online: