[SOLVED] qmake make and install target
-
hi,
I am trying to add the
make installmake target to my project. I added all my configfiles, external librarys, etc as target to theINSTALLSvariable. This works nice.My problem now is:
How do I add the compilation output to INSTALLS?I tried doing this:
target.files += $$OUT_PWD/$(DESTDIR)/$(TARGET) target.path += /somewhere/to/install INSTALLS += targetusing this from the commandline works for dynamic-library projects. But if I try to open the
.prowith QtCreator, QtCreator it will crash.Also the documentation says: Note that qmake will skip files that are executable. If you need to install executable files, you can unset the files' executable flags.
How does this make sens? how is somebody supposed to create an install target if it is not possible to add the compilation executable to the installation.
-
ok found the solution:
in my .pro i hat a typo:
target.files = config.conf .... // wrong _____________^_________this needs to be:
target.files += config.conf // right _____________^_________also I hade multiple installation-targets and did not add
targetto installs in every build configuration.so for those who run in the same problem:
- be sure you add
targetto INSTALLS, target.files is already filled with your compilation output. - use
+=not=to add other files
- be sure you add