Re: [CMake] How do I generate a preprocessed file?

2009-05-11 Thread Piotr Wyderski
Bill Hoffman wrote: > You do know about make foo.i where CMake will do this for you, right? No, I didn't. But now I do -- it does exactly what I want. Thanks! :-) Best regards Piotr Wyderski ___ Powered by www.kitware.com Visit other Kitw

Re: [CMake] How do I generate a preprocessed file?

2009-05-10 Thread Piotr Wyderski
oblem is so hard in CMake -- I thought there is a single variable specifying a template for a given target, e.g. *.cpp => *.o Best regards Piotr Wyderski ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.

Re: [CMake] How do I generate a preprocessed file?

2009-05-10 Thread Piotr Wyderski
t_target_properties() might also be of use. It is a very promising direction indeed, however after some hacking all I have from GET_TARGET_PROPERTY(_x ... COMPILE_FLAGS) is NOTFOUND :-/ But thank you Tyler for pointing me out the function. :-) Best reg

Re: [CMake] How do I generate a preprocessed file?

2009-05-08 Thread Piotr Wyderski
dge of CMake. Best regards Piotr Wyderski ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMa

[CMake] How do I generate a preprocessed file?

2009-05-07 Thread Piotr Wyderski
++ file is my inc.cpp. How can I achieve that goal using CMake? Of course it doesn't need to be done the way I specified above, as I am pretty new to CMake. A functional equivalent is all what I need, in particular I don't need t1.cpp. Best regards Piotr Wyderski ___