[cmake-developers] Automoc in cmake

Alexander Neundorf neundorf at kde.org
Mon Jun 6 03:56:29 EDT 2011


On Saturday, June 04, 2011 10:24:52 AM Alexander Neundorf wrote:
> Hi,
> 
> one feature which all KDE developers are used to and which is also used by
> qmake when building Qt is "automoc".
> 
> This means that you don't have to write
> qt4_wrap_cpp(srcs ${filesToBeMoced})
> 
> but instead you simply do
> kde4_add_executable(hello ${srcs})
> and everything including moc is handled automatically.

Yesterday we finished porting our automoc away from Qt to pure STL/cmsys. It 
is now a small executable of 300kb and linking to nothing special.
It is also BSD-licensed.

Alex



More information about the cmake-developers mailing list