On 2009-07-21 05:23-0700 Alan W. Irwin wrote:

> On 2009-07-21 10:53+0100 Andrew Ross wrote:
>
>> Alan - perhaps you can cast an eye over this [CMake method of dealing
> with #includeing source code]? You may be able to think of
>> a better way of doing it.
>
> It might be a little cleaner in style to configure a file rather than
> writing it.  That could be done with a template file with the line
>
> @include_statement@
>
> where in the CMake logic you have either
>
> set(include_statement "#include\"${QT_MOC_OUTFILES}\"")
>
> or
>
> set(include_statement)
>
> depending on whether moc is run or not.  That change in style still means
> that the header is written at CMake time.

I leave the decision about the above change to you.

>
> [...]If there is no way you can make the dependencies work correctly with the
> method you are using now (with or without the GENERATED property), then I
> believe you could force CMake to do the right thing using the same method we
> use for plhershey-unicode.h_built in include/CMakeLists.txt.

I couldn't make the dependencies work correctly (in fact this method always
broke builds made in initially empty build directories) so I used the more
fundamental method (revision 10173) which works under all circumstances.

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
__________________________

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to