Qt pro file call another makefile

坚强是说给别人听的谎言 提交于 2019-12-30 10:30:40

问题


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

Is there anything like using the pro file for Qt?


回答1:


Something like this should work:

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

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.



来源:https://stackoverflow.com/questions/10488458/qt-pro-file-call-another-makefile

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!