Skip to content

patrikfors/test-cmake-template

Repository files navigation

test-cmake-template

test cpp-cmake-template

This is an instantiated clone of mortinger91/cpp-cmake-template that has been cleaned up

Template for a multi platform CMake C++ project that includes:

  • VSCode files -- no idea if this works
  • Github Actions -- updated to use cmake presets
  • Test suite using CTest
  • Dockerfile

Set up project:

cmake --preset debug

Build and Run:

cmake --build --preset debug

then run:
./ProjectFolder/build/debug/bin/cpp-cmake-template

Run tests:

ctest --preset default

To run tests in a Docker container:

docker compose down --volumes --rmi all
docker compose up