Switch from qt4_automoc to cmake_automoc

Review Request #126247 - Created Dec. 4, 2015 and submitted

Christian Ehrlicher
cgiboudeaux, dfaure

A small patch to use cmake_automoc instead the qt4_automoc macro + include foo.moc in every foo.cpp
Also removed some unused/duplicated include directories and added a cmake minimum version (2.8.12 - should be suitable for all current distros)
The only real source code change is the move of ~Createrepo_impl from the header to the source file (because of the SharedPointer member)

Compiles and runs fine

Christophe Giboudeaux
Christian Ehrlicher
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit a59500a9d006ce8b860c268574650f0432881825 by Christian Ehrlicher to branch master.