isciences / exactextract

Fast and accurate raster zonal statistics
Apache License 2.0
246 stars 32 forks source link

Refactor build to provide control over build artifacts and dependencies #27

Closed hellkite500 closed 2 years ago

hellkite500 commented 2 years ago

This PR refactors the CMakeLists.txt for the project and exposes some options to better control the build. This is particularly useful for when the the library is needed without the CLI. The changes proposed here allow the library to be built independently and without the need for GDAL.

Also fixes what may be a bug with the BUILD_DOC option, as it was available, but wasn't used.

The the updates in the Compiling section of the readme in the change set for a brief description of the options and a usage example.

dbaston commented 2 years ago

Thanks!