Enable automoc
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 17 Mar 2014 22:15:57 +0000 (23:15 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 17 Mar 2014 22:37:01 +0000 (23:37 +0100)
commit0de0a17782cf478d638a532f36898197af88e0bc
tree99761b6229153411e8d00826c0fd7079357c6b87
parentfab133f23bdcddd34939600d449627cefdc1a414
Enable automoc

Finally we can make use of this very convenient CMake feature and have
the moc stuff handled automagically. No need to list the headers anymore
for feeding them into the long-deprecated qt4_wrap_cpp macro.

Also, this should compile a bit faster and lead to slightly better optimized
code, because automoc will combine all the generated moc stuff for a target
into a single translation unit.

Note that we could get rid of various empty .cpp files (where all the code
is in the header) by just adding the header to the sources list; that way,
automoc will pick them up. There is no need to have a dummy .cpp file for
that.
13 files changed:
CMakeLists.txt
src/CMakeLists.txt
src/client/CMakeLists.txt
src/client/abstractui.cpp [deleted file]
src/client/clientcoreinfo.cpp [deleted file]
src/common/CMakeLists.txt
src/common/coreinfo.cpp [deleted file]
src/core/CMakeLists.txt
src/qtui/CMakeLists.txt
src/qtui/settingspages/previewbufferview.cpp [deleted file]
src/qtui/settingspages/settingspages.cmake
src/uisupport/CMakeLists.txt
src/uisupport/abstractnotificationbackend.cpp [deleted file]