Qt Pro文件调用另一个Makefile [英] Qt pro file call another makefile

查看:213
本文介绍了Qt Pro文件调用另一个Makefile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以在Qt中使用.pro文件来调用另一个Makefile?例如,在生成文件中,您可以使用:

Is there a way to use the .pro file in Qt to call another Makefile? For example, in a makefile, you could use:

make -f /other/path/Makefile

是否有使用Pro文件进行Qt的操作?

Is there anything like using the pro file for Qt?

推荐答案

类似的方法应该起作用:

Something like this should work:

QMAKE_EXTRA_TARGETS += other
PRE_TARGETDEPS += other
other.commands = make -f /other/path/Makefile

这将导致在制作过程中调用make -f /other/path/Makefile,并且还使您能够键入make other来仅运行该命令.

this will cause make -f /other/path/Makefile to be called as part of the make process, and will also give you the ability to type make other to just run that command.

这篇关于Qt Pro文件调用另一个Makefile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆