C++ sample application with unit tests developed with GoogleTest.
cpprime/
├── build
├── src
│ ├── prime.cpp
│ ├── prime.h
│ └── main.cpp
├── tests
│ └── primeTest.cpp
├── makefile
├── CMakeLists.txt
└── README.md
This project uses the design patterns from Google C++ Style Guide.
1. Build application
$ make build
2. Run application
$ make run
3. Run Tests
$ make test
4. Build Cmake
$ cmake -S . -B build
1. Build Container:
$ docker build --tag=leoduprates/cpprime .
2. Run Container:
$ docker run -it --rm leoduprates/cpprime:latest