/CppTemplateApplication

Template for a C++ application with Google Test

Primary LanguageCMake

CppTemplateApplication

Description:

This is a template for creating a C++ program with GoogleTest framework

Build and run

mkdir -p build
cd build
cmake ..
# or cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_CC_COMPILER=/usr/bin/clang ..
# or cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++-6 -DCMAKE_CC_COMPILER=/usr/bin/gcc ..
make
./CppTemplateApplication

Testing

mkdir -p build
cd build
cmake ..
make
make test
# or
./unit-tests