CMake experimental OCC builder
For about a couple of weeks (well, almost), I've been trying to move the pythonOCC build system from distutils to CMake, in order to have a real multiplatform builder and save many *many* hours of work. I contributed a CMake builder to Fotis' salomegeometry project, which works quite well. A lot of people here already complained about the automake builder/installer currently used by OCC (Unices); Roman Lygin reported (http://www.opencascade.org/org/forum/thread_17893/) a few issues with Windows/MSVC as well. Indeed, we all here expect a multiplatform build system that would automate everything we do manually. I then started to work on a CMake based installer (I know there are other build tools, but I had to choose one, and already had bad experience with SCons).
Here is attached a text file named CMakeLists.txt. CMake parses this file, and generates project files according to the Generator you choose (for instance VS2005 under win32, Unix Makefiles under Unix). CMake 2.6 or higher is required (see http://www.cmake.org). Detailed instructions about the 'HowTo' are in the file header. Note that projects using CMake usually split this script in many different files located all over the source code. The file attached is a 'monolithic' script.
This attempt is a very first draft, and the result of only 4 hours of work, so don't expect to be able to compile the whole solution (only TKBRep and TKernel toolkits can be built, still linkage errors). This script can be considered as an outline, but I hope you'll however be interested in this work and can contribute in any way to improve it. I tried to comment the code as clearly as possible, and inserted #TODO tags. This file is distributed under the terms of the OCCT Public License 6.3.
Having a source code version control tool would be a very good thing( maybe in 2010?; in the meantime, feel free to attach patches to your replies.