[CMake] Creating custom file before building/compiling with cmake

Michael Wild themiwi at gmail.com
Thu Aug 19 10:48:36 EDT 2010


On 19. Aug, 2010, at 16:38 , Roman Wüger @mac.com wrote:

> Hello,
> 
> i need to create a file called "ApplicationVersion.xml" before the main source file (main.cpp) would be compiled.
> The file should contain some application details and the current Date/Time and SVN Revision.
> 
> How can I create such file before the source file are compiled?
> How can I get the current Date/Time and the SVN Revision?
> 
> Thanks in advance
> 
> Best Regards
> NoRulez


When should the file be updated? At configure time or every time a build is started?

Michael



More information about the CMake mailing list