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

2009-03-01 Thread Eric Noulard
2009/3/1 Alexander Neundorf a.neundorf-w...@gmx.net: 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;

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 a.neundorf-w...@gmx.net: 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.

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 command

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

2009-03-01 Thread David . Karr
From: Eric Noulard eric.noul...@gmail.com 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

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

2009-02-27 Thread Steve Huston
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 names of the generated sources. - rerun cmake to regenerate

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

2009-02-27 Thread Michael Jackson
I believe you can have cmake read the contents of a file into a variable. If the file that lists the generated files is a semi-colon or space delimited (assuming no spaces in the names or paths) then you can read the file directly into a cmake variable, then use that variable as the source

[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

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