I do not #include the moc-generated cpps in the corresponding class cpp files, but instead let them be built and linked as separate compilation and link targets, so I don't run into this issue. The .moc files will be re-generated and compiled as needed when the QObject-based class header file changes.Question: what's the best way to get tell cmake that the moc-generated cpps are already included in other cpps and do not need to be compiled?
Bookmarks