TopoToolbox / libtopotoolbox

A C library for the analysis of digital elevation models.
https://topotoolbox.github.io/libtopotoolbox/
GNU General Public License v3.0
0 stars 3 forks source link

Control whether tests are built with the BUILD_TESTING flag #18

Closed wkearn closed 3 months ago

wkearn commented 3 months ago

src/CMakeLists.txt now uses include(CTest) to enable the CTest module and then only adds the build instructions in the test/ directory if BUILD_TESTING is enabled. It is enabled by default. CMake can be configured to build just the library with no tests by running

> cmake -B build -DBUILD_TESTING=OFF