KDEInstallDirs needs to be imported earlier, this is where most installation paths are defined, and without it pri files get installed to the wrong path