Add CMake example
This commit is contained in:
8
cmake-example/tests/foo_test.cpp
Normal file
8
cmake-example/tests/foo_test.cpp
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "catch.hpp"
|
||||
|
||||
#include "mylib/foo.hpp"
|
||||
|
||||
TEST_CASE("Foo Test", "[foo]")
|
||||
{
|
||||
REQUIRE(mylib::foo() == 42);
|
||||
}
|
2
cmake-example/tests/test_runner.cpp
Normal file
2
cmake-example/tests/test_runner.cpp
Normal file
@@ -0,0 +1,2 @@
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include "catch.hpp"
|
Reference in New Issue
Block a user