<?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[Specifying name of output .qrc file when using qt_add_translations]]></title><description><![CDATA[<p dir="auto">Given the following in the CMake file for a static library:</p>
<pre><code>set(PROJECT_NAME DeepSkyStackerKernel)
  :
qt_add_translations(${PROJECT_NAME}
    TS_FILE_DIR i18n
    PLURALS_TS_FILE i18n/${PROJECT_NAME}_en.ts
    PLURALS_TS_FILE i18n/${PROJECT_NAME}_en_GB.ts
    )
</code></pre>
<p dir="auto">Then, (AFAICT) a qrc file called DeepSkyStackerKernel_translations.qrc will be build dynamically and the .qm files added to that.</p>
<p dir="auto">I would very much prefer that the output qrc file were called simply "kernel_translations.qrc".</p>
<p dir="auto">How do I accomplish that?</p>
<p dir="auto">Thanks, David</p>
]]></description><link>https://forum.qt.io/topic/164577/specifying-name-of-output-.qrc-file-when-using-qt_add_translations</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 17:33:33 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164577.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Apr 2026 11:48:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Specifying name of output .qrc file when using qt_add_translations on Sat, 18 Apr 2026 12:30:29 GMT]]></title><description><![CDATA[<p dir="auto">The following <em>appears</em> to work, but is it the correct way to do it?</p>
<pre><code>qt_add_translations(${PROJECT_NAME}
    TS_FILE_DIR i18n
    PLURALS_TS_FILE i18n/${PROJECT_NAME}_en.ts
    PLURALS_TS_FILE i18n/${PROJECT_NAME}_en_GB.ts
    QM_FILES_OUTPUT_VARIABLE qm_files
    )
qt_add_resources(${PROJECT_NAME} "kernel_translations"
    PREFIX "/i18n"
    BASE "${CMAKE_CURRENT_BINARY_DIR}"
    FILES ${qm_files}
    )

</code></pre>
]]></description><link>https://forum.qt.io/post/837854</link><guid isPermaLink="true">https://forum.qt.io/post/837854</guid><dc:creator><![CDATA[Perdrix]]></dc:creator><pubDate>Sat, 18 Apr 2026 12:30:29 GMT</pubDate></item></channel></rss>