kde4_automoc change (need help)

David Faure faure at kde.org
Fri May 12 18:03:41 CEST 2006


On Friday 12 May 2006 17:46, Alexander Neundorf wrote:
> Different usage:
> 
> set(mySrcs foo.cpp widget.cpp mainwindow.cpp)
> kde4_automoc(${mySrcs})   <- detect automatically where to run moc
> kde4_add_executable(kfoo ${mySrcs} )
> 
> as opposed to:
> 
> set(mySrcs foo.cpp widget.cpp mainwindow.cpp)
> qt4_wrap_cpp(mySrcs foo.h widget.h)   <- list the files which need to be 
> moc'ed, no autodetection, moc_foo.cxx will be created and added to the list 
> mySrcs

I don't understand the "cpp" in "qt4_wrap_cpp" then, if that function is about
moc'ing header files ;)

Anyway, in my case foo.moc would be preferred over moc_foo.cpp, when
included by the .cpp file.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the Kde-buildsystem mailing list