Skip to content

raccoonmonk/scaffold-cmake-catch2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scaffold_cmake_catch2

Simple C++ project template with a library, an executable and tests using CMake and Catch2.

Build

Building from outside of the project directory.

Configure:

cmake -S ./scaffold_cmake_catch2 -B ./build_dir

Configure without tests:

cmake -S ./scaffold_cmake_catch2 -B ./build_dir -DBUILD_TESTING=OFF

Build:

cmake --build ./build_dir -- -j16

Run tests

cmake --build ./build_dir --target test

Licensing

This project is licensed under The Unlicense.

Catch2 itself is under Boost Software License 1.0.