[Interest] Three-file modules vs. moc

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Thu Aug 27 14:00:12 CEST 2020


Hi,

Can you make an example of your structure (what's exactly in each of the 
three files)? It's not entirely clear.

Il 27/08/20 13:26, Bernhard Lindner ha scritto:
> Hm. I am not sure I get it. That is a global option, right? I have a LOT of modules, each
> with a different name. When adding an -f option for each of them, each moc_*.cpp file
> would include all *.inl includes... which would increase compile time exponentially. I
> would like to avoid that.

You might also use a custom extra compiler -- that still invokes moc, 
but for each foo.h also tells moc to include foo.inl, bar.h -> bar.inl, 
and so on...

-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200827/5ee4e24b/attachment.bin>


More information about the Interest mailing list