I created a Qt project which is working and now I want to interface with some third party libraries. I have used Qt Creator to "Add Existing Directory..." to the header folder. I browse to the folder and it does add the header files to the .pro file.
HEADERS += \
mainwindow.h \
... more of my files ...
../../ComponentLib/src/Component.h \
... other files from ComponentLib ...
When I do this it shows up in the headers folder in the project view but my include statements don't work.
#include "Component.h"//results in "No such file or directory"
On the other hand, if I copy the header files in question into my project directory, I can add them as existing files and my include statement works. When I try to compile, I find that those new headers have other dependencies and I end up having to copy ALL the files. I'd be happy to do this, except that really should be able to import the whole third party library and then include the files I want.
I expect that there is a Qt Creator step I have missed. Any ideas?
-----------------------EDIT-----------------------
I was able to find a solution in part. How to add include path in Qt Creator? indicates that I can directly put the path into my .pro file. Still, there should be some way to do this automatically. Is there a feature which Qt Creator has to do this?