I am trying to build my QT test unit appl (myTest.cpp) using CMake. The test appl compiles/runs fine if I use qmake.
However, when I use CMake it complains about line at end of file: include "myTest.moc".
I needed this line when I use qmake. So I tried:
a). Removing line (include "myTest.moc")
b). Adding a qt4_wrap_cpp to create myTest.moc.
Now, I get a bunch of moc_myTest.cxx errors.
This unit test file doesn't have a header file. Any ideas what I am missing.