Re: [CMake] Technique for generating projects that depend on generated sources

2009-03-01 Thread David . Karr
From: Eric Noulard >> Can you run the source generator at cmake time ? > > Yes you are right and I miss that, > if the generator is launched at CMake time it may help a lot. > Moreover I would say that the "source file list" generated by the > generator may be some kind of CMake file, let's say >

Re: [CMake] Technique for generating projects that depend on generated sources

2009-03-01 Thread Bill Hoffman
I had another idea. About how many generated files are there, and how big are they? It they are smallish, you could generate a single source file that includes the generated files. generated.cxx #include "gen1.cxx" #include "gen2.cxx" #include "gen3.cxx" ... Then you could have a custom comma

Re: [CMake] Technique for generating projects that depend on generated sources

2009-03-01 Thread Alexander Neundorf
On Sunday 01 March 2009, you wrote: > 2009/3/1 Alexander Neundorf : > > On Friday 27 February 2009, Steve Huston wrote: ... > > Can you run the source generator at cmake time ? > > Yes you are right and I miss that, > if the generator is launched at CMake time it may help a lot. > Moreover I would

Re: [CMake] Technique for generating projects that depend on generated sources

2009-03-01 Thread Eric Noulard
2009/3/1 Alexander Neundorf : > On Friday 27 February 2009, Steve Huston wrote: >> Thanks for the advice, Bill. >> >> My situation is somewhat different, though. The output source files >> are not known ahead of time. Thus, the general scheme is: >> >> - build runs the source generator; one of the

Re: [CMake] Technique for generating projects that depend on generated sources

2009-03-01 Thread Alexander Neundorf
On Friday 27 February 2009, Steve Huston wrote: > Thanks for the advice, Bill. > > My situation is somewhat different, though. The output source files > are not known ahead of time. Thus, the general scheme is: > > - build runs the source generator; one of the outputs is a file > containing the nam

Re: [CMake] Technique for generating projects that depend on generated sources

2009-02-27 Thread Michael Jackson
projects that depend on generated sources Steve Huston wrote: I'm working on a project that involves generating a large chunk of the sources from separate definitions. The set of generated source files is not known before it is generated. The approach I've tried so far (and I'm ve

Re: [CMake] Technique for generating projects that depend on generated sources

2009-02-27 Thread Steve Huston
/ > -Original Message- > From: Bill Hoffman [mailto:bill.hoff...@kitware.com] > Sent: Thursday, February 26, 2009 9:04 PM > To: Steve Huston > Cc: cmake@cmake.org > Subject: Re: [CMake] Technique for generating projects that > depend on generated sources > > > Steve

Re: [CMake] Technique for generating projects that depend on generated sources

2009-02-26 Thread Bill Hoffman
Steve Huston wrote: I'm working on a project that involves generating a large chunk of the sources from separate definitions. The set of generated source files is not known before it is generated. The approach I've tried so far (and I'm very new to cmake) is to define a custom_command that does

[CMake] Technique for generating projects that depend on generated sources

2009-02-26 Thread Steve Huston
I'm working on a project that involves generating a large chunk of the sources from separate definitions. The set of generated source files is not known before it is generated. The approach I've tried so far (and I'm very new to cmake) is to define a custom_command that does the source generation,