Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在 Qt 中使用 .pro 文件来调用另一个 Makefile?例如,在 makefile 中,您可以使用:
make -f /other/path/Makefile
有没有像使用 Qt 的 pro 文件一样的东西?
像这样的东西应该工作:
QMAKE_EXTRA_TARGETS += other PRE_TARGETDEPS += other other.commands = make -f /other/path/Makefile
这将导致make -f /other/path/Makefile作为 make 过程的一部分被调用,并且还使您能够键入make other以运行该命令。
make other