Add customizable installation directory
joede opened this issue · comments
It would be great if qmqtt would allow a customizable installation directory. Using /usr/...
instead of /usr/local/...
or $HOME/.local/...
(XDG like) isn't the best solution.
I've tried to add some target.path
entries to the .pro
files, but not all files are "redirected".
So, if you know a solution, please add it to the README or make it the default.
I guess there is no easy solution to this problem. Some time ago the qmake files were adapted to the format used by regular QT modules. That's why they really want to be installed in the same directories as the official QT files (/usr/... on most linux systems).
I can see this is not always desirable, because those directories are the domain of the package manager. One way of fixing this is to create your own project file. QMQTT does not have a lot of special requirements. Just add all source files (or include src/mqtt/qmqtt.pri) and make sure you are the modules 'core' and 'network' (and optionally websockets).