Re: [CMake] Running a Python script at PRE_BUILD

2009-03-16 Thread Denis Scherbakov
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.

[CMake] Running a Python script at PRE_BUILD

2009-03-15 Thread Ali Pouladi
Hello all, How can I run a Python script at PRE_BUILD (or PRE_LINK) time? I basically need to generate a header file containing build number filled with the SVN revision number of the trunk. I already have written a script for doing so, I just don't know how to get it to run before the build s