Hello!

I have a project, an application, split into 2 directories, each containing sources and headers, like:

fet
engine
rules.h
rules.cpp
interface
fet.h
fet.cpp
interface.pro

I compile the project with

Qt Code:
  1. qmake interface.pro
To copy to clipboard, switch view to plain text mode 

interface.pro used to contain this:

Qt Code:
  1. INCLUDEPATH += . ../engine
To copy to clipboard, switch view to plain text mode 

The target is app (an application compiled with rules.cpp and fet.cpp from the engine+interface subdirectories).

But today I read that I should also add the directive:

Qt Code:
  1. DEPENDPATH += . ../engine
To copy to clipboard, switch view to plain text mode 

so that when I change a header file, the application is updated.

Am I right to add the DEPENDPATH directive this way?