[CMake] How to configure target or command to preprocess C file?

Mateusz Loskot mateusz at loskot.net
Mon Jul 9 04:43:46 EDT 2012


On 8 July 2012 13:34, Mateusz Loskot <mateusz at loskot.net> wrote:
> Hi,
>
> I'm porting build configuration based on GNU Autotools to CMake
> and I have to deal with C preprocessing to generate a file.
>
> The input for preprocessor is SQL file with C preprocessor directives
> used, like #include "another.sql", etc.
> [...]

FYI, I also posted this question to StackOverflow

http://stackoverflow.com/questions/11383314/how-to-configure-cmake-target-or-command-to-preprocess-c-file

Perhaps there are some SO users here, then feel free to copy your answer to SO.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the CMake mailing list