[CMake] Generating files during building

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu May 31 10:55:07 EDT 2007


On 2007-05-31 14:37+0100 Gustavo wrote:

>>> Finding .o files is a real PITA.  So, you're going to want to generate
>>> your .c files, figure out which .c files you actually have, then do
>>> CMake as usual.
>>
>> Yes, do the split at cmake-time time or earlier, then you know early enough
>> which c files you will have.
>
> The source file is generated after the first phase of the building process:

Is this really necessary?  For example, could you run EXECUTE_PROCESS
(which runs at cmake time) to execute your splitter to generate all the source
files?

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list