Also moc cpp files in gyp integration

We had the logic in place to detect mocable cpp files all along,
but only used it for headers.

Change-Id: I00ea4e3ba081c5c7d37fe35ec78233e4961481e3
Reviewed-by: Andras Becsi <andras.becsi@digia.com>