Qt pro file call another makefile

后端 未结 1 1869
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-14 08:45

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

1条回答
  •  有刺的猬
    2021-01-14 09:25

    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.

    0 讨论(0)
提交回复
热议问题