Fix cmake 3.10 CMP0071 related warning
We did and do not let automoc and autouic process generated files.