qmake中qmake_post_link的使用

来源:互联网 发布:php源码防复制 编辑:程序博客网 时间:2024/06/06 04:47

编译前执行

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

123
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"


0 0
原创粉丝点击