CppTemplate
C++ project template that uses CMake / Google Test / Github Actions
Install / Use
/learn @martin-olivier/CppTemplateREADME
CppTemplate
:warning: Requirement
:computer: Usage
:rocket: Clone repository
git clone https://github.com/martin-olivier/CppTemplate
:wrench: Setup repository
python3 setup.py
:hammer: Build
Using Unix Makefile:
# to build the program
make
./binary
# to build the tests
make tests
./unit_tests
Using CMake:
# to build the program
cmake . -B build
cmake --build build
./binary
# to build the tests
cmake . -B build_tests -DUNIT_TESTS=ON
cmake --build build_tests
./unit_tests
