[Interest] Three-file modules vs. moc

Bernhard Lindner private at bernhard-lindner.de
Tue Sep 1 21:29:29 CEST 2020


Hi Thiago!

> Correct, qmake does not preprocess, but it does try to guess what your 
> dependencies are. This is not restricted to moc outputs: any #include found 
> that match a source file is automatically removed from the list of targets to 
> build too.

Oh my! :-(

> A more correct way to do this would be to use GCC's makefile dependencies 
> output flags (-MM, etc.). But I guess no one wants to implement new features 
> for qmake.

You are probably right :-(

Well, what about coming cmake in Qt6? I assume Qt Creator will support cmake based
projects for application developers. Do you see a chance to fix the problem using the new
tool set?

-- 
Best Regards,
Bernhard Lindner



More information about the Interest mailing list