[CMake] Using m4 as a additional preprocessor for C/C++

Prasad H. L. hlprasu at gmail.com
Fri Jun 5 10:07:23 EDT 2009


Hi,

I wanted to do some looping in macros which are not possible in GNU
CPP. So, I wrote
macros in m4. I wish to pre-process all my C/C++ code with m4 before
handing it over to
gcc. I did not find any direct way out for doing this in cmake. Any
ideas how to do it with
cmake?

Regards,
Prasad


More information about the CMake mailing list