Имя переменной

This commit is contained in:
Andrei Astafev 2021-06-21 13:00:11 +03:00
parent f512c6d5d2
commit baa57922b4
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ function(qt5_translation outfiles)
set(_output_dir ${_QTTR_OUTPUT_DIR})
set(_languages ${_QTTR_LANGUAGES})
set(_l10n_qrc_body "")
set(L10N_QRC_BODY "")
make_directory(${_output_dir})
foreach(lang ${_languages})
@ -19,7 +19,7 @@ function(qt5_translation outfiles)
set(_qm "${_base_name}_${lang}.qm")
list(APPEND _ts_list ${_output_dir}/${_ts})
list(APPEND _l10n_names_list "${_base_name}_l10n_${lang}")
string(APPEND _l10n_qrc_body "<file alias=\"${_qm}\">${CMAKE_BINARY_DIR}/${_qm}</file>\n")
string(APPEND L10N_QRC_BODY "<file alias=\"${_qm}\">${CMAKE_BINARY_DIR}/${_qm}</file>\n")
add_custom_target(
${_base_name}_l10n_${lang} COMMAND ${Qt5_LUPDATE_EXECUTABLE} ${_sources} -ts ${_output_dir}/${_ts}

View File

@ -1,5 +1,5 @@
<RCC>
<qresource prefix="/qm">
@l10n_qrc_body@
@L10N_QRC_BODY@
</qresource>
</RCC>