qmake: Defining a make target for all SUBDIRS

| | Comments (0)

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.

Leave a comment

About this Entry

This page contains a single entry by beaufour published on February 4, 2008 10:22 PM.

Finally category RSS feeds was the previous entry in this blog.

Kilimanjaro here I come is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.1