I have a project I’m working on in Qt creator that requires a third-party library. I want to add the headers to the include path for the project. How do I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using qmake, the standard Qt build system, just add a line to the
.profile as documented in the qmake Variable Reference:If you are using your own build system, you create a project by selecting “Import of Makefile-based project”. This will create some files in your project directory including a file named
<your project name>.includes. In that file, simply list the paths you want to include, one per line. Really all this does is tell Qt Creator where to look for files to index for auto completion. Your own build system will have to handle the include paths in its own way.As explained in the Qt Creator Manual,
<your path>must be an absolute path, but you can avoid OS-, host- or user-specific entries in your.profile by using$$PWDwhich refers to the folder that contains your.profile, e.g.