3

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

make -f /other/path/Makefile

有没有像使用 Qt 的 pro 文件一样的东西?

4

1 回答 1

5

像这样的东西应该工作:

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

这将导致make -f /other/path/Makefile作为 make 过程的一部分被调用,并且还使您能够键入make other以运行该命令。

于 2012-05-07T21:39:23.687 回答