Hi!
I had the same problem. I solved it by adding:
include_directories(${CMAKE_CURRENT_BINARY_DIR})
to CMakeList.txt. Don't forget to add #include "foo.moc" in your foo.cpp.You don't need KDE4_AUTOMOC anymore.
I hope this helps.
Elio.
>> Visit
http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<