Fixes AUTOMOC generating not needed automoc files in Visual Studio
When CMAKE_AUTOMOC is ON it looks for all _p.c files and it generates the corresponding automoc files.
When CMAKE_AUTOMOC is ON it looks for all _p.c files and it generates the corresponding automoc files.