Recently in Qt Category
I’m having a bit of fun with Qt and qmake these days. Although qmake is nicely knitted together with all the Qt tools and gets you up and running quickly, it leaves a bit to be desired. Or maybe it is just the documentation which is lacking up quite a deal.
Anyhow I just figured out how to do add a make target for all SUBDIRS in a project file:
check.target = check
check.CONFIG = recursive
QMAKE_EXTRA_TARGETS += check
This makes a ‘check’ target in the current directory, which will run ‘make check’ in all SUBDIRS defined.
Yes, I am looking at unit tests :), so I might write more on that subject when I figure out some more about qmake.