To early in the morning me to fully describe why everything mentioned in this thread is poor programming practice and should be discouraged not encouraged.
Qt and Qmake (as well as certified developers) should know better!!
Installing user generated libraries and other dependencies directly into the Qt install directories is fragile and will break when for instance the Qt library is upgraded or deleted and re-installed.
Also, on Linux for instance, distribution based installs are installed with permission filters to the 'admin' of the system. Developers using the 3rd party library, may very well not want to be forced by the provider of a 3rd party, Qt based library, to have to install in this area, but instead in the less restricted 'user' space.
Another peeve I'll mention is that Qmake relies on hard coded Qt environment variables that are not available to the build environment outside of using Qmake itself. I constantly come across projects using qmake build configurations that I have to completely rewrite to make for a more flexible environment.
Qtcreator is a fine example of a crappy qmake build file. On Linux the install is in-flexible and has to be patched or deviated from. Qtcreator installs itself not in the 'admin' restricted area, but where only system related files belong.. /lib /include /bin ...etc!
Please consider this when you distribute your 3rd party projects using the very poorly created (and documented) qmake build system.
Please use system wide ENVIRONMENT variables and not hard coded Qt variables for others to rely on.
Thank you!
// rant over :-)
Bookmarks