Hello,
I have actually started to look a bit into this. I took the easy way by starting with FreeXL, in fact it was easy to add CMake scripts for building the library (with an option to switch between static and dynamic outputs), the 2 examples, and the tests (although additional work is required for use them with CTest, although I am not sure that is required to mimic all the features in the Autotools scripts). It could be worthwhile to define the CMake approach with FreeXL, since it is a tiny library, then adopt the same approach for the other libraries.
About RasterLite2, I fully understand the Sandro's concerns. From a first quick survey:
- xz/lzma has issues with MSVC:
http://sourceforge.net/p/lzmautils/discussion/708858/thread/5ea0391b/- libjpeg-turbo seems to already use CMake:
http://sourceforge.net/p/libjpeg-turbo/code/HEAD/tree/trunk/CMakeLists.txt- openjpeg seems to already use CMake:
https://code.google.com/p/openjpeg/source/browse/trunk/CMakeLists.txt- CharLS seems to already use CMake:
https://charls.codeplex.com/SourceControl/latest#CMakeLists.txt- freetype and cairo are on the OSGeo4W list:
http://download.osgeo.org/osgeo4w/x86/versions.html
- fontctonfig was attempted to add CMake scripts:
http://lists.freedesktop.org/archives/fontconfig/2012-October/004425.html
- pixman:
https://github.com/CMakePorts/cmake.pixmanI have not idea on how these libraries are related to the project main code, but I guess that some of them are for codecs that can be disabled if an MSVC-port is not available.
Have a nice day,
Giuseppe