Fix CMake automoc warning

Authored by kfunk on Nov 16 2018, 10:27 AM.