[CMake] begginer Q on generated headers with generated tool

Alexander Neundorf a.neundorf-work at gmx.net
Mon Apr 30 09:09:06 EDT 2007


On Monday 30 April 2007 08:48, Jesús López wrote:
> Hi,
> Congrats for CMake, finally something I can understand speedy,
> instead of the autohell.. :-)
>
> Just a begginer's question if some find the time to it.
>
> I have a project that generates custom IDL to H compiler needed for
> building, I have a big include directoy full with common headers used
> by several targets each in a directory, and some missing headers need
> to be created invocating that IDL2H.
>
> I've read in the FAQ how to create headers depending on custom
> generators, but in the  example all happens in only one
> directory/cmakelists, instead of a proyect spanning in several.

Do you have any special problems with this ?

> Is there some clean strategy to do this. And also is there a way to
> avoid the need of include the generated headers as explicit
> dependencies of the main targets, 

No, adding them to the source files for a target is the way to express the 
dependency.

Bye
Alex


More information about the CMake mailing list