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
- Host: GitHub
- URL: https://github.com/martin-olivier/cpptemplate
- Owner: martin-olivier
- Created: 2022-01-07T21:32:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-24T16:53:30.000Z (about 4 years ago)
- Last Synced: 2025-04-09T15:11:08.896Z (12 months ago)
- Topics: ci, cmake, cpp, template
- Language: CMake
- Homepage:
- Size: 32.2 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)