Qt pro file calls another make file

Is there a way to use a .pro file in Qt to invoke another Makefile? For example, in a makefile you can use:

make -f /other/path/Makefile

Is there something like using a pro file for Qt?

+3
source share
1 answer

Something like this should work:

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

this will cause it to make -f /other/path/Makefilebe called as part of the make process, and also give you the ability to type make otherto run this command.

+5
source

All Articles