From 0a6a3e6373db37a1e21c9c63302e6e67a3255ab6 Mon Sep 17 00:00:00 2001 From: robtor Date: Mon, 6 Feb 2023 19:08:03 +0100 Subject: [PATCH] Added Catch2 --- .gitmodules | 3 +++ .idea/cmake.xml | 8 ++++---- CMakeLists.txt | 5 ++++- third-party/Catch2 | 1 + 4 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 .gitmodules create mode 160000 third-party/Catch2 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4ca17ee --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "third-party/Catch2"] + path = third-party/Catch2 + url = https://github.com/catchorg/Catch2.git diff --git a/.idea/cmake.xml b/.idea/cmake.xml index 857e3e2..eac66eb 100644 --- a/.idea/cmake.xml +++ b/.idea/cmake.xml @@ -2,10 +2,10 @@ - - - - + + + + \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index e4bf8b5..dab41af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,4 +112,7 @@ add_custom_command(TARGET ${PROJECT_NAME}.elf POST_BUILD COMMAND ${CMAKE_OBJCOPY} -Oihex $ ${HEX_FILE} COMMAND ${CMAKE_OBJCOPY} -Obinary $ ${BIN_FILE} COMMENT "Building ${HEX_FILE} -Building ${BIN_FILE}") \ No newline at end of file +Building ${BIN_FILE}") + +# Integrate Catch2 Tests +add_subdirectory(third-party/Catch2) diff --git a/third-party/Catch2 b/third-party/Catch2 new file mode 160000 index 0000000..f3c0a3c --- /dev/null +++ b/third-party/Catch2 @@ -0,0 +1 @@ +Subproject commit f3c0a3cd091aba8341a77e5c8580e5697f0e6892