A small pri file to add includepaths from another project.
This can be useful if you build one project as library and need all of it's additional includepaths (The qmake
INCLUDEPATH variable) in another project where you use the library. One example would be QtMvvm.
This package is designed to be used with qpm, but can be used without qpm as well.
The package is providet as qpm package,
de.skycoder42.qpm-include. To install:
- Install qpm (See GitHub - Installing)
- In your projects root directory, run
qpm install de.skycoder42.qpm-include
- Include qpm to your project by adding
Check their GitHub - Usage for App Developers to learn more about qpm.
To make it work, simply set the
QPM_INCLUDEPATH variable before adding the
vendor.pri file to your project. The following example assumes "Library" is another project to import the includepaths from.
QPM_INCLUDEPATH += <path_to>/Library/vendor/vendor.pri include(vendor/vendor.pri) # Includes qpm-include as well, if you are using qpm