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.
- Host: GitHub
- URL: https://github.com/khatymov/cpp_template_project
- Owner: khatymov
- License: gpl-3.0
- Created: 2022-06-01T11:25:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-26T14:07:06.000Z (about 1 year ago)
- Last Synced: 2025-04-26T15:20:53.318Z (about 1 year ago)
- Topics: cmake, coverage, cpp, gtest, template
- Language: Shell
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---
## 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