PDA

View Full Version : How to write a correct .pri file ? Qtcreator does not include my sources ....



tonnot
23rd March 2011, 11:34
I have the next .pri file :


INCLUDEPATH += D:/MY_path/MY_folder

SOURCES += file1.cpp \
file2.cpp \
file3.cpp

HEADERS += file1.h \
file2.h \
file3.h

Ok, I want to add this file to some projects, which are located at several paths in my C or D drive (So I cannot write ../path/path .... to define relative paths or simply I dont want )

I use at the .pro file where I want to have the 'my_project' files :

include(d:/MY_path/MY_folder/my_project.pri)

In the example I show, QtCreator detects only headers....
(I see the .folder with the .pri file and the Headers folder, but not the Sources folder).

Any help ? Thanks

Solved....
You must use absolute paths .....