From: Felix E. Klee (felix.klee.jamboost_at_[hidden])
Date: 2003-01-16 05:54:00
On Thursday 16 January 2003 11:01 am, Vladimir Prus wrote:
> >>To avoid it, one can:
> >>1. Use "moc_h" extension for headers and then do
> >>qt.exe hello : hello.cpp [ GLOB . : *.moc_h ] ;
> >>However, your observation still applies: it's another way to explicitly
> >>specify the list of mocced files. If you add Q_OBJECT, you need to change
> >>that list. And in this requires file renaming. (How do you do that
> >>in CVS, for one thing?)
> > Yes, but I like really this solution because, as David pointed out, these
> > header files are actually non-C++ source files. I recommend ".qpp" as an
> > extension which fits nicely with the common ".hpp" and ".cpp" extensions.
> OK, and ".qpp" will be "header file that should be processed by moc"?
> You'd still have to add the files to the list of sources, right?
Yes. It doesn't buy much in terms of convenience when compared to your
original proposal. However, it is more consistent since the files to be
moc'ed are actually source files.
-- To contact me personally don't reply but send email to felix DOT klee AT inka DOT de
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk