[CMake] QT4 and MOC

Laszlo Papp djszapi at archlinux.us
Sat Oct 2 03:07:51 EDT 2010


Hi,

I wrote a helloworld class, source and header file for instance which
is basically moc related class with Q_OBJECT macro. I do not know why
I must use qt4_wrap_cpp(helloworld.h) beside
qt4_automoc(helloworld.cpp).
I always thought that qt4_automoc can recognize it. I would like to
avoid the moc file include at the end of my source line. I would like
to link that generated moc at linkage time, mostly.

Thank you in advance.

Best Regards,
Laszlo Papp


More information about the CMake mailing list