CMake 3.18.0 fails to run moc for cpp files (without header) when using unity build
We have a few test cases that define a class inheriting from Q_OBJECT inside the cpp file and a #include "filename.moc" at the end of the file. Using UNITY_BUILD this fails. With cmake < 3.18.0 moc is being run and everything works. With CMake 3.18.0 moc is seemingly no longer run, thus compilation fails.