From 9efaec26d23fa8eb787d025f6d4207f651d86cd5 Mon Sep 17 00:00:00 2001 From: TheMarpe Date: Wed, 8 Feb 2023 13:06:44 +0200 Subject: [PATCH] Added an option to build tests that defaults to off --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 39951e4..966a6af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,10 @@ project(subprocess CXX) set(CMAKE_CXX_STANDARD 11) +# Options +option(BUILD_TESTING "Build tests" OFF) + +# Tests include(CTest) if(BUILD_TESTING) add_subdirectory(test)