Re: [CMake] question about QT4_WRAP_CPP

2009-12-07 Thread Pau Garcia i Quiles
On Tue, Dec 8, 2009 at 12:21 AM, Glenn Hughes wrote: > Thanks Pau, > > Interesting! If I remove the #include "moc_main.cxx" line, then the > generated moc file includes "main.h", so then everything will build. I guess > moc auto-detects which method you are using, and generates its code > accordin

Re: [CMake] question about QT4_WRAP_CPP

2009-12-07 Thread Pau Garcia i Quiles
On Mon, Dec 7, 2009 at 11:54 PM, Glenn Hughes wrote: > I'm still playing around with the states Qt example, and I've hit something > I don't understand: > > I can get everything working as expected with QT4_AUTOMOC, but not if I use > QT4_WRAP_CPP. > > In the QT4_WRAP_CPP case, it seems the only w

[CMake] question about QT4_WRAP_CPP

2009-12-07 Thread Glenn Hughes
I'm still playing around with the states Qt example, and I've hit something I don't understand: I can get everything working as expected with QT4_AUTOMOC, but not if I use QT4_WRAP_CPP. In the QT4_WRAP_CPP case, it seems the only way to get dependencies set up correctly is to add the MOC output t