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

"Roman Wüger" <norulez@me.com> at mac.com "Roman Wüger" <norulez@me.com> at mac.com
Thu Aug 19 12:54:17 EDT 2010


The file should be updated every time a build is started.

Best Regards
NoRulez

Am 19. Aug 2010 um 16:48 schrieb Michael Wild <themiwi at gmail.com>:

>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100819/5bbdec35/attachment.htm>


More information about the CMake mailing list