This repository is currently under development. If you are interested in the result, check back in a few months.
Building the HydroShed C++ API requires the following software installed:
- A C++11-compliant compiler
- CMake
>= 3.9
- Doxygen (optional, documentation building is skipped if missing)
- GDAL, e.g. by doing
sudo apt install libgdal-dev
on Debian/Ubuntubrew install gdal
on MacOS
The following sequence of commands downloads and builds HydroShed C++ API:
git clone --recursive https://github.com/ssciwr/hydrosheds-cpp-api.git
cd hydrosheds-cpp-api
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
The build process can be customized with the following CMake variables,
which can be set by adding -D<var>={ON, OFF}
to the cmake
call:
BUILD_TESTING
: Enable building of the test suite (default:ON
)BUILD_DOCS
: Enable building the documentation (default:ON
)
HydroShed C++ API provides a Sphinx-based documentation, that can be browsed online at readthedocs.org.