lalesculiviu
22nd February 2010, 14:21
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
qmake interface.pro
interface.pro used to contain this:
INCLUDEPATH += . ../engine
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:
DEPENDPATH += . ../engine
so that when I change a header file, the application is updated.
Am I right to add the DEPENDPATH directive this way?
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
qmake interface.pro
interface.pro used to contain this:
INCLUDEPATH += . ../engine
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:
DEPENDPATH += . ../engine
so that when I change a header file, the application is updated.
Am I right to add the DEPENDPATH directive this way?