Hi! You may want to look at http://www.cmake.org/pipermail/cmake/2009-March/027774.html I generate *.cpp files from CORBA *.idl files before the project is compiled. The same you can do for header files. Exactly at PRE_BUILD - it works only on Visual Studio. Why no everywhere? I also wonder... Denis