<?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[Conan + CMake + Qt 6.5 deployment issue]]></title><description><![CDATA[<p dir="auto">I have implemented a very simple C++ test project (simple QMainWindow) using Conan, CMake and Qt 6.5 that I would like to build and deploy on multiple platforms.<br />
So far, I was able to build an EXE but haven't figured out how to script the <em>CMakeLists.txt</em> to deploy the EXE and its dependencies.</p>
<p dir="auto">These are the commands that I am using:</p>
<pre><code>mkdir build &amp;&amp; cd build
conan install .. --build=missing
cmake ..
cmake --build .
</code></pre>
<p dir="auto">So far so good, but when I am running <strong>cmake --install.</strong>, I am getting errors such as:</p>
<p dir="auto"><em>CMake Error at .qt/deploy_TestDeploy_4a9b6cc5f7.cmake:1 (include):<br />
include called with wrong number of arguments.  include() only takes one file.</em></p>
<p dir="auto">If I open this file <em>.qt/deploy_TestDeploy_4a9b6cc5f7.cmake</em>, I can see the first line has an include() statement with no argument.</p>
<p dir="auto">I have tried all the scripts I found online (on the Qt site and others) but none of them works. For instance:<br />
<a href="https://doc.qt.io/qt-6/qt-generate-deploy-script.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/qt-generate-deploy-script.html</a><br />
<a href="https://www.qt.io/blog/cmake-deployment-api" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.qt.io/blog/cmake-deployment-api</a></p>
<p dir="auto">Maybe someone can share some code snippets? Ideally, I would like the <em>CMakeLists.txt</em> to work on all platforms (Windows, Linux and MacOS).</p>
]]></description><link>https://forum.qt.io/topic/146053/conan-cmake-qt-6-5-deployment-issue</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Nov 2026 04:47:43 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/146053.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Jun 2023 00:48:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Conan + CMake + Qt 6.5 deployment issue on Thu, 17 Aug 2023 08:46:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/codeform">@<bdi>codeform</bdi></a> I'm having the same issue. Conan's version of Qt doesn't seem to set the right qt cmake variables.<br />
Namely, QT6_IS_SHARED_LIBS_BUILD and QT_DEPLOY_SUPPORT are missing.</p>
]]></description><link>https://forum.qt.io/post/769135</link><guid isPermaLink="true">https://forum.qt.io/post/769135</guid><dc:creator><![CDATA[kuroki]]></dc:creator><pubDate>Thu, 17 Aug 2023 08:46:21 GMT</pubDate></item><item><title><![CDATA[Reply to Conan + CMake + Qt 6.5 deployment issue on Thu, 29 Jun 2023 15:02:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cristian-adam">@<bdi>cristian-adam</bdi></a></p>
<p dir="auto">I tried that. Same issue.</p>
]]></description><link>https://forum.qt.io/post/763053</link><guid isPermaLink="true">https://forum.qt.io/post/763053</guid><dc:creator><![CDATA[codeform]]></dc:creator><pubDate>Thu, 29 Jun 2023 15:02:50 GMT</pubDate></item><item><title><![CDATA[Reply to Conan + CMake + Qt 6.5 deployment issue on Thu, 29 Jun 2023 13:06:59 GMT]]></title><description><![CDATA[<p dir="auto">What happens if you use something like:</p>
<pre><code>cmake --install . --prefix instdir
</code></pre>
<p dir="auto">?</p>
]]></description><link>https://forum.qt.io/post/763038</link><guid isPermaLink="true">https://forum.qt.io/post/763038</guid><dc:creator><![CDATA[cristian-adam]]></dc:creator><pubDate>Thu, 29 Jun 2023 13:06:59 GMT</pubDate></item></channel></rss>