Skip to content

Template C++ project using CMake, CTest and Catch2. Useful as a simple place to start to get a reasonable project structure.

License

Notifications You must be signed in to change notification settings

MattClarkson/CMakeCatch2

Repository files navigation

CMakeCatch2

Build Status Build Status

Purpose

This is a demo project to demonstrate a reasonable folder structure for CMake based projects, that use CTest to run unit tests via Catch.

Credits

This project was developed as a teaching aid for UCL's "Research Computing with C++" course developed by Dr. James Hetherington and Dr. Matt Clarkson.

Build Instructions

This project itself can be built if you just want to test it. In Linux terms that would be:

git clone https://github.com/MattClarkson/CMakeCatch2
mkdir CMakeCatch2-Build
cd CMakeCatch2-Build
cmake ../CMakeCatch2
make

But ideally, you should use this as a template to create your own project. To do so, please refer to the CMakeTemplateRenamer which will show you how to clone this repository, and rename all the variables to names of your choice. Then you would simply build your new project, using cmake, as shown above.

About

Template C++ project using CMake, CTest and Catch2. Useful as a simple place to start to get a reasonable project structure.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published