I have several libraries that have dependencies among themselves, and one project that depends on these libraries. The build is organized using qmake.
I would like to provide automatic placement after the assembly of binary files of these libraries (cross-platform, for windows and unix) in the ways where dependent projects are waiting for them. Need support relative paths.
As I found out, qmake can do the installation on the specified path in this way:
target.path=$${PWD}/../relative/path/to/install INSTALLS+=target But the problem is that it is impossible to set several paths for the target (like dlltarget ) - as a result, qmake generates a Makefile in which the reassigned targets are obtained, as a result, only one path is used (the last one specified). That is, the only way to install the problem is solved, but with several - no.
How to solve a problem through qmake?
UPD
My solution to the answer @JK_Action is as follows:
target1.path=$${PWD}/../relative/install/path/for/depependend/project/1 unix:target1.files=$${DESTDIR}/*.so* win32:target1.files=$${DESTDIR}/*.dll target2.path=$${PWD}/../relative/install/path/for/depependend/project/2 unix:target2.files=$${DESTDIR}/*.so* win32:target2.files=$${DESTDIR}/*.dll target3.path=$${PWD}/../relative/install/path/for/depependend/project/3 unix:target3.files=$${DESTDIR}/*.so* win32:target3.files=$${DESTDIR}/*.dll INSTALLS += target1 target2 target3
newtarget.commandsfor installation (how to get the names of compiled binary files for transfer, for example, tocpforunix{ ... }orcopyforwin32{ ... }). - ASten