Added an option to build tests that defaults to off

This commit is contained in:
TheMarpe 2023-02-08 13:06:44 +02:00
parent 1392c47cbb
commit 9efaec26d2

View File

@ -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)