Am Mittwoch, 26. Januar 2011 schrieb kfj:
> On 26 Jan., 12:37, Kornel Benko <[email protected]> wrote:
> > But, why not rename xx.h into xx.cpp?
> 
> Hey, no problem, I can rename it into anything. So let's assume I have
> zz.cpp in my source directory and I want it to be C-preprocessed into
> a file z.i in my binary directory, from where it's included into

to "zz.i"

> another file. What do I have to tell cmake to do this?

You have to define a dependency

e.g.
        add_custom_command(
                ...
                DEPENDS zz.i ....
        )

> My problem is
> really very basic, it should be a one-liner. Please excuse my
> ignorance. It would then be equivalent to the make rule of
> 
> .i .c

You mean ".c.i" here, don't you?

> which I know cmake can do.
> 
> Kay

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to