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

https://github.com/martin-olivier/cpptemplate

C++ project template that uses CMake / Google Test / Github Actions
https://github.com/martin-olivier/cpptemplate

ci cmake cpp template

Last synced: 9 months ago
JSON representation

C++ project template that uses CMake / Google Test / Github Actions

Awesome Lists containing this project

README

          

# CppTemplate

## :warning: Requirement

- [CMake >= 3.17](https://cmake.org/download/)
- [C++17](https://en.cppreference.com/w/cpp/17)
- [Python3](https://www.python.org/download/releases/3.0/)

## :computer: Usage

### :rocket: Clone repository

```sh
git clone https://github.com/martin-olivier/CppTemplate
```

### :wrench: Setup repository

```sh
python3 setup.py
```

## :hammer: Build

Using Unix Makefile:
```sh
# to build the program
make
./binary

# to build the tests
make tests
./unit_tests
```

Using CMake:
```sh
# 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
```

## :bust_in_silhouette: Authors

- [Martin Olivier](https://github.com/martin-olivier)
- [Coline Seguret](https://github.com/Cleopha)