Hello. ( I use KUbuntu 16.04 and Qt Creator 3.6.1 based on Qt 5.6.0)
I've been trying to run tests. My tests exists in digikam-software-compilation/core/tests/database folder

I go to the above folder in terminal and run "qmake ; make" command. A database.pro file is created.

Qt Code:
  1. ######################################################################
  2. # Automatically generated by qmake (2.01a) Tue Jun 14 14:57:30 2016
  3. ######################################################################
  4.  
  5. CONFIG+=qtestlib
  6. TEMPLATE = app
  7. TARGET =
  8. DEPENDPATH += .
  9. INCLUDEPATH += /home/swati/digikam-software-compilation/core/libs/database/coredb/
  10.  
  11. # Input
  12. HEADERS += databasefieldstest.h databasetagstest.h
  13. SOURCES += databasefieldstest.cpp databasetagstest.cpp testdatabase.cpp
To copy to clipboard, switch view to plain text mode 

Now, there was only one file ( #include "coredbfields.h") in databasefieldstest.cpp and for that I've already added the path in INCLUDEPATH above.

If I run "qmake ; make" again, I get error for the files included in the include file i.e "coredbfields.h"
I tried to include that file too, i again gave error for the next included file.... This way I'm getting recursive errors.

Please tell me how to fix this?
I want to implement unit tests.