Building GeoTIFF with CMake

I’ve just submitted ticket to GeoTIFF Trac system with patch providing CMake build configuration for GeoTIFF library and utility programs.

#17CMake build configuration for GeoTIFF

It also includes FindGeoTIFF module for CMake users that need to determine availability of libgeotiff in their projects. Tests and improvements are welcome.

Building libLAS with CMake

libLAS - ASPRS LiDAR data translation toolset I almost finished crafting CMake configuration for libLAS. It is available from the repository in the main branch. It is possible to build libLAS library and command line utilities configured with most of supported dependencies: GDAL, GeoTIFF and SpatialIndex. Configuration of Oracle and Boost dependencies is not ready yet. It is also possible to install libLAS run-time and compile-time components. Cool!

Detailed story with extensive example of how to use CMake to build libLAS is available here in Trac. I have successfully tested it on Linux (Ubuntu 9.04). I’m going to test & update it on Windows with Visual Studio – generally it (compilation) works but dependencies selection and installation commands haven’t been tested.

I’m very pleased I can officially announce CMake configuration availability. I truly hope to make my life and users life easier – maintenance of Visual Studio projects is just ridiculously tedious and time consuming.

Preparing CMake configuration was a very useful experience and I’m going to use it to improve other projects this way (like SOCI, Generic Geometry Library). I would be happy to see interest in preparing CMake configuration for GDAL/OGR too…any brave hearts out there?

Why CMake? Because CMake is the best build system ever delivered to Open Source community. Full stop.

Projects of all types, ages and sizes evaluated CMake, came to the same conclusion and eventually migrated to use CMake. To give examples of large or established projects, here we go:

By the way, I’ve started collecting custom reusable CMake modules – available from my workshop repository. They can be used to complete, large collection anyway, of standard CMake modules.

QGIS tracks on BoostCon’09

In one of presentations from this year’s edition of BoostCon, I found a small track of Quantum GIS project. This is Bill Hoffman‘s presentation titled A CMake-Based Software Process for Development and Integration Testing (PDF) and the track is citation taken from Martin Dobias’ blog post Having fun with CMake:

I was quite surprised with the speed of building Quantum GIS codebase in comparison to Autotools.

All presentations from the BoostCon’09 are available to download including Barend‘s slides and article with about Generic Geometry Library. There are much more interesting materials from the conference available and as another one somehow related to geospatial works, I’d like to point Graphics Programming Workshop about programming with Adobe’s Graphics Interface Library which is a part of Boost C++ Libraries (>= 1.35.0). There are both, slides and source codes, available to download.