Hi,

I'm working on a qt project called xdc. Its source tree looks like this:

Qt Code:
  1. /
  2. xdc.pro
  3. xdc/
  4. include/
  5. ...
  6. src/
  7. ...
  8. test/
  9. include/
  10. ...
  11. src/
  12. ...
To copy to clipboard, switch view to plain text mode 

Now, I want to write a project file so that after generating the Makefile, I should be able to compile the test cases simply with a "make test" command.

What should I write in xdc.pro to make it possible?

More generally, how are unit tests organized in a qt project? Is there a specific way to do it?

Thanks