<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>blogfour</title>
    <link rel="alternate" type="text/html" href="http://www.beaufour.dk/blog/" />
    <link rel="self" type="application/atom+xml" href="http://www.beaufour.dk/blog/atom.xml" />
    <id>tag:www.beaufour.dk,2008-02-04:/blog//1</id>
    <updated>2008-02-07T08:06:45Z</updated>
    <subtitle>The blog of Allan Beaufour</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Personal 4.1</generator>

<entry>
    <title>qmake: Defining a make target for all SUBDIRS</title>
    <link rel="alternate" type="text/html" href="http://www.beaufour.dk/blog/2008/02/qmake-defining.html" />
    <id>tag:www.beaufour.dk,2008:/blog//1.265</id>

    <published>2008-02-04T21:22:25Z</published>
    <updated>2008-02-07T08:06:45Z</updated>

    <summary>I&#8217;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...</summary>
    <author>
        <name>beaufour</name>
        <uri>http://beaufour.dk</uri>
    </author>
    
        <category term="Qt" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="qmake" label="qmake" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="qt" label="qt" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="unittest" label="unit test" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.beaufour.dk/blog/">
        <![CDATA[<p>I&#8217;m having a bit of fun with <a href="http://trolltech.com/products/qt">Qt</a> and <a href="http://trolltech.com/products/qt/features/crossplatform/qmake/">qmake</a> 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.</p>

<p>Anyhow I just figured out how to do add a make target for all SUBDIRS in a project file:</p>

<pre><code>check.target = check
check.CONFIG = recursive
QMAKE_EXTRA_TARGETS += check
</code></pre>

<p>This makes a &#8216;check&#8217; target in the current directory, which will run &#8216;make check&#8217; in all SUBDIRS defined.</p>

<p>Yes, I am looking at unit tests :), so I might write more on that subject when I figure out some more about qmake.</p>
]]>
        

    </content>
</entry>

</feed>
 
