arun11299 / cpp-subprocess

Subprocessing with modern C++
Other
456 stars 90 forks source link

Add option to disable building tests #41

Closed bibermann closed 5 years ago

bibermann commented 5 years ago

To be able to make install the header-only library without having to build anything.

CTest, besides conditionally invoking enable_testing() and more, adds the option BUILD_TESTING which can be turned off when invoking cmake with -DBUILD_TESTING=OFF. See also https://cmake.org/cmake/help/latest/module/CTest.html.