This is a demo project to demonstrate a reasonable folder structure for CMake based projects, that use CTest to run unit tests via Catch.
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.
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.