Starting with version 2.8.6 CMake supports what is known as automoc, i.e. automatic handling of moc when using Qt4.
As you know, when adding signals and slots to a class using Qt, this source code (typically the header) has to be processed by the moc preprocessor. This invocation of moc during the build is what we are talking about.
When using plain CMake, you had to use the macro