What is INSTALL_ROOT under windows?
Can anybody answer this question?
Basically I am trying to copy a file to a specific location by using INSTALLS in qmake.
In other .pro files I am using QMAKE_POST_LINK which does not work here, because this is a subdir template
copyConfigXml.path = ../../somewhere/config copyConfigXml.files = config.xm* INSTALLS += copyConfigXml
In the generated makefile I can find
-$(INSTALL_FILE) E:\Source\bla\blaSuite\config.xml E:$(INSTALL_ROOT)\Source\bla\blaSuite\..\..\somewhere\config
The file is not copied. Therefore I am stuck.
and you did add build step for qmake
to do qmake install ?
The project settings in Qt creator are showing the standard build step. I did not change anything.
Well for me, i had to add
for it to actually copy anything.
not sure your case is the same.
Tested with echo plugin
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tools/echoplugin/plugin
INSTALLS += target
had to add build step (make) and add install as parameter for it
So its worth a shot, i think :)
Simply added the additonal make step with argument "install" as shown above. It did work taht way also with my MinGW configuration. I confirmd that the file in question was copied.
However, it performs the install now for all subprojects as well. Not sure about side effects.
Basically the answer to my question would be nothing then. INSTALL_ROOT seems to be empty then.
Thanks a lot.
Oh yes i assume "make install" applies to all projects as its global.
shows empty for me too.
According to this https://wiki.qt.io/Building-Qt-Creator-Packages#Things_affecting_the_build.2Finstall it is an environment variable. This is not set in my environment which explains that it is empty.
Which seems to be the default then.