Add CMake example

This commit is contained in:
Alex Hirsch
2020-11-26 21:56:26 +01:00
parent eb0ea94898
commit 353e06c941
10 changed files with 17982 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#include "catch.hpp"
#include "mylib/foo.hpp"
TEST_CASE("Foo Test", "[foo]")
{
REQUIRE(mylib::foo() == 42);
}

View File

@@ -0,0 +1,2 @@
#define CATCH_CONFIG_MAIN
#include "catch.hpp"