<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Creator &#x2F; cmake: Only build the executable I want to start?]]></title><description><![CDATA[<p dir="auto">My cmake project has about 40 executables that, together, take several seconds to link.<br />
When doing Test-Driven development with Qt , I'd want to only build and link the unit test I'm working with. I <strong>could</strong> select only that target in the cmake build steps, but the list is very long (&gt;1000 entries) and tedious to work with. I have not found an easy way to quickly switch between "build only unitTest1" and "build all my default build targets".</p>
<p dir="auto">Is there a way to build all build targets when I just say "Build", but only build the desired unit test when I directly start that test?</p>
]]></description><link>https://forum.qt.io/topic/164889/creator-cmake-only-build-the-executable-i-want-to-start</link><generator>RSS for Node</generator><lastBuildDate>Mon, 31 Aug 2026 18:35:30 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164889.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Jul 2026 10:44:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Creator &#x2F; cmake: Only build the executable I want to start? on Wed, 22 Jul 2026 10:27:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cristian-adam">@<bdi>cristian-adam</bdi></a> I think I'll write a suggestion for an additional "Build current executable only (disable other build targets)"</p>
]]></description><link>https://forum.qt.io/post/839310</link><guid isPermaLink="true">https://forum.qt.io/post/839310</guid><dc:creator><![CDATA[Asperamanca]]></dc:creator><pubDate>Wed, 22 Jul 2026 10:27:21 GMT</pubDate></item><item><title><![CDATA[Reply to Creator &#x2F; cmake: Only build the executable I want to start? on Wed, 22 Jul 2026 07:05:42 GMT]]></title><description><![CDATA[<p dir="auto">So you mean two build presets off the same configuration preset?<br />
I'd have to create a preset for each of my 20 unit tests, but that sounds worth trying</p>
]]></description><link>https://forum.qt.io/post/839306</link><guid isPermaLink="true">https://forum.qt.io/post/839306</guid><dc:creator><![CDATA[Asperamanca]]></dc:creator><pubDate>Wed, 22 Jul 2026 07:05:42 GMT</pubDate></item><item><title><![CDATA[Reply to Creator &#x2F; cmake: Only build the executable I want to start? on Tue, 21 Jul 2026 12:53:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/asperamanca">@<bdi>Asperamanca</bdi></a> the another option would be to use ... CMake Presets, there you can define in json the targets that you would want to build ...</p>
]]></description><link>https://forum.qt.io/post/839283</link><guid isPermaLink="true">https://forum.qt.io/post/839283</guid><dc:creator><![CDATA[cristian-adam]]></dc:creator><pubDate>Tue, 21 Jul 2026 12:53:32 GMT</pubDate></item><item><title><![CDATA[Reply to Creator &#x2F; cmake: Only build the executable I want to start? on Tue, 21 Jul 2026 12:07:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cristian-adam">@<bdi>cristian-adam</bdi></a> said in <a href="/post/839168">Creator / cmake: Only build the executable I want to start?</a>:</p>
<blockquote>
<p dir="auto">Current executable</p>
</blockquote>
<p dir="auto">Checking "current executable" doesn't make a difference - the other (unrelated) executables are still built.<br />
Either I need to set an option additionally (which one?), or I would need to uncheck all the other build targets (tedious)</p>
]]></description><link>https://forum.qt.io/post/839282</link><guid isPermaLink="true">https://forum.qt.io/post/839282</guid><dc:creator><![CDATA[Asperamanca]]></dc:creator><pubDate>Tue, 21 Jul 2026 12:07:29 GMT</pubDate></item><item><title><![CDATA[Reply to Creator &#x2F; cmake: Only build the executable I want to start? on Fri, 17 Jul 2026 08:39:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cristian-adam">@<bdi>cristian-adam</bdi></a> Nice, thanks!</p>
]]></description><link>https://forum.qt.io/post/839199</link><guid isPermaLink="true">https://forum.qt.io/post/839199</guid><dc:creator><![CDATA[Asperamanca]]></dc:creator><pubDate>Fri, 17 Jul 2026 08:39:52 GMT</pubDate></item><item><title><![CDATA[Reply to Creator &#x2F; cmake: Only build the executable I want to start? on Wed, 15 Jul 2026 15:11:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/asperamanca">@<bdi>Asperamanca</bdi></a> there is the <em>Current executable</em> setting in <em>Build Steps</em> in the Projects pane.</p>
<p dir="auto">Then when you edit your unittest and hit build, you would build and run only the unittest and not everything.</p>
<p dir="auto">The other option is with the CTest locator <code>ct unittest</code> which will build <code>unittest</code> and run <code>unittest</code>.</p>
]]></description><link>https://forum.qt.io/post/839168</link><guid isPermaLink="true">https://forum.qt.io/post/839168</guid><dc:creator><![CDATA[cristian-adam]]></dc:creator><pubDate>Wed, 15 Jul 2026 15:11:46 GMT</pubDate></item></channel></rss>