GTest example using CMake.
docker run --rm -it -v "D:/GTest":/app docker.pkg.github.com/nathanesau/docker-qt/qt-static:1.0
apt-get -y install libgtest-dev
# build and run tests
cd /app && mkdir build && cd build && cmake .. && make && test/tests
mkdir build
cd build
cmake ..
make
# run binary
src/stats
# run tests
test/tests
mkdir build
cd build
cmake ..
make
# run binary
"src/Debug/stats.exe"
# NOTE: tests aren't compiled on windows