编译前执行
QMAKE_PRE_LINK = cp - f [source] [destionation]
编译后执行
QMAKE_POST_LINK = cp - f [source] [destination]
执行多条命令
The answer is: ' & ' (Logic AND)
Here is an example I have used for adding specific dll's into my debug VS2008 folder:
Source code | |
1 2 3 | QMAKE_POST_LINK += copy References\*.dll Debug\ & QMAKE_POST_LINK += copy References\*.dll ..\bin\ & QMAKE_POST_LINK += copy Debug\*.exe ..\bin\ |
Note: Between quotes is also fine.
Note2: The same in one line is possible.
Source code | |
1 | QMAKE_POST_LINK += "copy References\*.dll Debug\ & copy References\*.dll ..\bin\ & copy Debug\*.exe ..\bin" |