[CMake] How to generate preprocessed file?

2009-03-23 Thread Marcel Loose
Hi all, I was trying to figure out how to generate a preprocessed file. By browsing the CMake modules and by printing all CMake variables I discovered CMAKE_LANG_CREATE_PREPROCESSED_SOURCE variables. That suggests that there is support for generating preprocessed files. However, there's no

Re: [CMake] How to generate preprocessed file?

2009-03-23 Thread Denis Scherbakov
Marcel, I am not sure what you need. If you want to convert config.h.in into config.h, then see CONFIGURE_FILE and #cmakedefine. For other files you may want to check ADD_CUSTOM_COMMAND and SET_SOURCE_FILES_PROPERTIES(${FILE} PROPERTIES GENERATED TRUE) Denis I was trying to figure out how

Re: [CMake] How to generate preprocessed file?

2009-03-23 Thread Bill Hoffman
Marcel Loose wrote: Hi all, I was trying to figure out how to generate a preprocessed file. By browsing the CMake modules and by printing all CMake variables I discovered CMAKE_LANG_CREATE_PREPROCESSED_SOURCE variables. That suggests that there is support for generating preprocessed files.

Re: [CMake] How to generate preprocessed file?

2009-03-23 Thread Marcel Loose
Hi Denis, I think you misunderstood what I mean with preprocessed file. I mean by a preprocessed file a file that is generated by running the C/C++ pre-processor. Here are the values of CMAKE_C_CREATE_PREPROCESSED_SOURCE and CMAKE_CXX_CREATE_PREPROCESSED_SOURCE that I get when running CMake:

Re: [CMake] How to generate preprocessed file?

2009-03-23 Thread Marcel Loose
Thanks, I didn't know it was that simple. The thing is that I ran 'make help' in the top-level build directory and it didn't show any .i target. However, after I descended into the build directory of the actual source I *did* get to see these .i targets. Wonderful! Best regards, Marcel Loose.