https://github.com/sirius-mhlee/cpp-boilerplate
C++ Boilerplate using CMake, Boost, OpenCV, Gcov, GCOVR, Cppcheck and GTest
https://github.com/sirius-mhlee/cpp-boilerplate
boilerplate boost cmake cpp cppcheck gcov gcovr gtest opencv
Last synced: 11 months ago
JSON representation
C++ Boilerplate using CMake, Boost, OpenCV, Gcov, GCOVR, Cppcheck and GTest
- Host: GitHub
- URL: https://github.com/sirius-mhlee/cpp-boilerplate
- Owner: sirius-mhlee
- Created: 2022-06-18T03:31:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-09T07:16:06.000Z (about 1 year ago)
- Last Synced: 2025-02-02T11:11:21.985Z (about 1 year ago)
- Topics: boilerplate, boost, cmake, cpp, cppcheck, gcov, gcovr, gtest, opencv
- Language: CMake
- Homepage:
- Size: 762 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C++ Boilerplate
C++ Boilerplate using CMake, Boost, OpenCV, Gcov, GCOVR, Cppcheck and GTest
## Requirement
- CMake (3.16.3)
- Boost (1.71.0)
- OpenCV (4.2.0)
- g++/Gcov (9.4.0)
- GCOVR (7.2)
- Cppcheck (1.90)
- GTest (1.11.0)
- Ninja (1.10.0)
```shell
sudo apt install build-essential libboost-all-dev libopencv-dev cmake ninja-build cppcheck
pip install gcovr
```
## Generate
```shell
cmake -S . -B build -G Ninja
```

## Build
> Need `Generate` step
```shell
cd build
cmake --build . --target all
```
## Test
> Need `Generate`, `Build` step
```shell
cd build
ctest -j2 --output-on-failure
```

## Coverage
> Need `Generate`, `Build`, `Test` step
``` shell
cd build
cmake --build . --target test1_cov
```
