title: QT : Cannot find moc file
body: <p>I'm trying to create a test application in QT to test another QT application's UI using qtlib. I learned that you also need to use  QTEST_MAIN() macro which expands to a simple main() method that runs all the test functions. </p>
  
  <pre><code>QTEST_MAIN(TestAppUI)
  #include "testapp.moc"
  </code></pre>
  
  <p>I'm compiling it using "make" and somewhere in my CMakeLists.txt I have </p>
  
  <pre><code>SET(TEST_APP_SRCS
  ui/menu/testapp.cpp
  )
  
  SET(TEST_APP_SRCS_MOC_SRCS
  ui/menu/testapp.hpp
  )
  
  QT4_WRAP_CPP(TEST_APP_SRCS ${TEST_APP_SRCS_MOC_SRCS})
  </code></pre>
  
  <p>My problem is, during compilation I'm getting this error.<br>
      error: testapp.moc: No such file or directory</p>
  
  <p>I don't know what's wrong... Any ideas? </p>