<?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[Nested Android CMake project - how to set androiddeployqt --input parameter]]></title><description><![CDATA[<p dir="auto">Consider hierarchical CMake project (for Android) with the 'top' project pointing to an actual app's folder:</p>
<p dir="auto">root<br />
|-- CMakeLists.txt (top)<br />
|-- app<br />
|---- CMakeLists.txt  (app)</p>
<pre><code># CMakeLists.txt top:

cmake_minimum_required(VERSION 3.14)
project(Top)
add_subdirectory(app)
</code></pre>
<pre><code># CMakeLists.txt app:
cmake_minimum_required(VERSION 3.14)
project(MyApp)
...
qt6_finalize_executable(MyApp)
</code></pre>
<p dir="auto">Everything builds as expected (from the QtCreator). However, hitting the F5 for deploying (and running) fails:</p>
<pre><code>No target architecture defined in json file
</code></pre>
<p dir="auto">One solution is to copy the <strong>android-AndroidApp-deployment-settings.json</strong> from the <em>app</em> folder to the <em>root</em>.</p>
<p dir="auto">Is there a more elegant way by telling the <strong>androiddeployqt</strong> where to find the deployment-settings.json file (i.e. how to set the <strong>--input</strong> parameter for the <strong>androiddeployqt</strong>)? I've played with <strong>qt_android_generate_deployment_settings</strong> and <strong>qt_android_add_apk_target</strong> with no avail....</p>
]]></description><link>https://forum.qt.io/topic/126832/nested-android-cmake-project-how-to-set-androiddeployqt-input-parameter</link><generator>RSS for Node</generator><lastBuildDate>Wed, 30 Sep 2026 05:30:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/126832.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 May 2021 12:57:35 GMT</pubDate><ttl>60</ttl></channel></rss>