Qt moc not run on generated files
Files which are generated does not get the moc compilation step. It's because of this condition. I confirmed that removing the condition gives the expected outcome. I fail to see the reason behind this check, but due to me being a novice there might be reasons for the condition that I do not understand.
If someone with more experience with CMake and Qt could chime in with thoughts I'll gladly make a PR.
Generated files have the moc run on it.
Generated files are skipped.