(cmake) Use AUTOMOC feature

Modules are now built as static libraries when possible
Merge remote-tracking branch 'origin/master'