有没有办法在Qt中使用.pro文件来调用另一个Makefile?例如,在makefile中,您可以使用:
make -f /other/path/Makefile
Run Code Online (Sandbox Code Playgroud)
有没有像Qt使用专业文件?
这样的事情应该有效:
QMAKE_EXTRA_TARGETS += other
PRE_TARGETDEPS += other
other.commands = make -f /other/path/Makefile
Run Code Online (Sandbox Code Playgroud)
这将导致make -f /other/path/Makefile
作为make过程的一部分被调用,并且还将使您能够键入make other
以运行该命令.