Skip to content

C++ Boilerplate using CMake, Boost, OpenCV, Gcov, GCOVR, Cppcheck and GTest

Notifications You must be signed in to change notification settings

sirius-mhlee/cpp-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
sudo apt install build-essential libboost-all-dev libopencv-dev cmake ninja-build cppcheck
pip install gcovr

Generate

cmake -S . -B build -G Ninja

generate_result.png

Build

Need Generate step

cd build
cmake --build . --target all

Test

Need Generate, Build step

cd build
ctest -j2 --output-on-failure

test_result.png

Coverage

Need Generate, Build, Test step

cd build
cmake --build . --target test1_cov

coverage_result.png

About

C++ Boilerplate using CMake, Boost, OpenCV, Gcov, GCOVR, Cppcheck and GTest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published