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

Fixes to allow dependencies to install libtopotoolbox cleanly #25

Closed wkearn closed 2 months ago

wkearn commented 2 months ago

This series of commits updates the CMake project configuration to allow dependencies to install libtopotoolbox successfully with a minimum of extra noise.

src/CMakeLists.txt is updated to point to ${topotoolbox_SOURCE_DIR}/include for the header files, which should allow projects building libtopotoolbox as a dependency to find the headers properly.

CMakeLists.txt now uses a project-specific TT_BUILD_TESTS flag to control whether the internal tests are built. This is off by default, so dependencies will not build the tests alongside the library. The build instructions in the README have been updated, and CI now uses this flag.