From c9cd8b444be26f437ebaacb805d8cd7103ea0382 Mon Sep 17 00:00:00 2001 From: Pcornat Date: Mon, 6 Jan 2025 20:13:59 +0100 Subject: [PATCH 1/2] Update Catch2 --- external/catch2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/catch2 b/external/catch2 index fa43b77..914aeec 160000 --- a/external/catch2 +++ b/external/catch2 @@ -1 +1 @@ -Subproject commit fa43b77429ba76c462b1898d6cd2f2d7a9416b14 +Subproject commit 914aeecfe23b1e16af6ea675a4fb5dbd5a5b8d0a From b3c59ffe0d17bbd3a09f88c2b6b4572052b62deb Mon Sep 17 00:00:00 2001 From: Pcornat Date: Mon, 6 Jan 2025 20:15:43 +0100 Subject: [PATCH 2/2] Adding option for unit testing --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4639e0c..4fc4fda 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ else () message(STATUS "ccache not found") endif () -fetchcontent_declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz) +fetchcontent_declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz DOWNLOAD_EXTRACT_TIMESTAMP OFF) set(JSON_BuildTests OFF CACHE INTERNAL "") option(JSON_ImplicitConversions "Enable implicit conversions." OFF) option(JSON_SystemInclude "Include as system headers (skip for clang-tidy)." ON) @@ -63,6 +63,7 @@ set(LINKER_OPTIONS ) option(ENABLE_COVERAGE "Enabling coverage" OFF) +option(BILLY_ENABLE_TESTS "Enable Unit testing target" ON) if (${ENABLE_COVERAGE}) message(STATUS "Coverage enabled") @@ -125,4 +126,6 @@ install(FILES DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/billySheet ) -add_subdirectory("Unit testing") +if (${BILLY_ENABLE_TESTS}) + add_subdirectory("Unit testing") +endif ()