kde4_automoc change (need help)
    Alexander Neundorf 
    neundorf at kde.org
       
    Fri May 12 18:21:24 CEST 2006
    
    
  
On Friday 12 May 2006 18:03, David Faure wrote:
> 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
...must be for historical reasons.
> about moc'ing header files ;)
about moc'ing any files.
> Anyway, in my case foo.moc would be preferred over moc_foo.cpp, when
> included by the .cpp file.
With the qt4_wrap_cpp() the generated files wouldn't be included, but compiled 
as separate files. I think for unit tests this should be ok.
Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net
    
    
More information about the Kde-buildsystem
mailing list