Fix compile with cmake

See https://github.com/sebsauer/Charm/commit/cff76199b16c9a39a2319fbe838a51034484c728#commitcomment-2647012
Merge pull request #97 from sebsauer/fixMocCompile

Fix compile with cmake