<?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[Windows + Cmake multiproject template]]></title><description><![CDATA[<p dir="auto">Good morning.</p>
<p dir="auto">I switched to Qt 6.2 and cmake some weeks ago and, however bumpy sometimes that friendship is, we get along with cmake.<br />
But this morning I need to revisit some old tool of mine, designed to work on Windows only, so I thought "why not convert it from qmake?". Usually I don't have a problem with that, I just write cmakelists file by hand looking at the .pro file and done.</p>
<p dir="auto">But this project is good old multidir one, simple as can be. But somewhat problematic. The .pro file goes:</p>
<pre><code>TEMPLATE = subdirs

SUBDIRS += \
    NameOfMyTool \
    icmp

DISTFILES += \
    README.md \
    Doxyfile
</code></pre>
<p dir="auto">(the tool itself is a library named <code>icmp</code> and the tool itself, it is simple connectivity tester for my users using Windows, it performs several network tests with visual gui, icmp library is just a wrapper around WinAPI calls)</p>
<p dir="auto">So according to the cmake docs this should be straightforward as <code>add_subdirectory()</code> and so on, after writing cmake lists for library and the executable but I wanted to see how Qt does that - so I started to create new multi project in QtCreator (5.0.3) but it resulted in the new qmake project? With single project I am given a choice between qmake/cmake.</p>
<ol>
<li>is this a bug or a feature?</li>
<li>what is the QtCreator template for this use case - is it just regular cmake grammar or anything specific?</li>
</ol>
<p dir="auto">I am using, in this case, Qt 6.2.1/MinGW 8 + Windows 10/11, cmake from Qt installation.</p>
<p dir="auto">Many thanks in advance,<br />
Artur</p>
]]></description><link>https://forum.qt.io/topic/132299/windows-cmake-multiproject-template</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Jul 2026 14:52:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/132299.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Nov 2021 10:03:41 GMT</pubDate><ttl>60</ttl></channel></rss>