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

https://github.com/khatymov/cpp_template_project

You have to write a lot of code, but you don't want to waste your time creating the same thing every time. Then this cpp template for you.
https://github.com/khatymov/cpp_template_project

cmake coverage cpp gtest template

Last synced: 4 months ago
JSON representation

You have to write a lot of code, but you don't want to waste your time creating the same thing every time. Then this cpp template for you.

Awesome Lists containing this project

README

          


cpp_template_project


build
Test coverage
Version
License

---

## About

You have to write a lot of code, but you don't want to waste your time creating the same thing every time. Then this cpp template for you.

---

## Requirements
* C++ version: [`C++17`](https://en.cppreference.com/w/cpp/17)
* Build system: [`CMake`](https://cmake.org/)
* C++ compiler: `g++`
* Code coverage report: [`lcov`](http://ltp.sourceforge.net/coverage/lcov.php)
* Package manager: [`Conan`](https://conan.io/downloads) or
* Test framework: [`gtest`](https://github.com/google/googletest)

---

## Run programm in docker

* Install docker and pull image of ubuntu: `./scripts/docker_setup.sh` (if you already have docker, then just do `docker pull ubuntu:22.04`)

* Build app in docker: `./scripts/docker_build.sh`

* Run unit tests in docker: `./scripts/docker_test.sh`

## Run programm locally

* Install dependencies: `./scripts/install_dep.sh`
* Build project: `./scripts/build.sh`
* Run unit tests: `./scripts/test.sh`

- To create your own class use script: ./scripts/class.sh ClassName ./path
---
## Developers

- [Renat](https://github.com/khatymov)

---

## License
Current project is distributed under the GPL-3.0 license