From 4768c5efc7ce3ca9fc80baf72df303e91f348a96 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Mon, 13 Apr 2020 20:55:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D0=BD=D0=B5=D0=B4=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B2=D0=BE=D0=B4?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMLibQtTranslation.cmake | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/CMLibQtTranslation.cmake b/CMLibQtTranslation.cmake index 54a7169..117cf0a 100644 --- a/CMLibQtTranslation.cmake +++ b/CMLibQtTranslation.cmake @@ -37,16 +37,15 @@ function(qt5_translation outfiles) endforeach() configure_file(${CMLIB_MODULE_DIR}/qrc/l10n.qrc.in ${CMAKE_BINARY_DIR}/${_base_name}_l10n.qrc) - # qt5_add_resources(_qrc ${CMAKE_BINARY_DIR}/${_base_name}_l10n.qrc) - list(APPEND ${outfiles} ${CMAKE_BINARY_DIR}/${_base_name}_l10n.qrc) - # add_custom_target(${_base_name}_qrc DEPENDS ${_qrc}) - # add_custom_target(${_base_name}_l10n DEPENDS ${_l10n_targets}) + qt5_add_resources(${outfiles} ${CMAKE_BINARY_DIR}/${_base_name}_l10n.qrc) + add_custom_target(${_base_name}_qrc DEPENDS ${_qrc}) + add_custom_target(${_base_name}_l10n DEPENDS ${_l10n_targets}) if(NOT TARGET l10n) add_custom_target(l10n) endif() - add_dependencies(l10n ${_target}_l10n) + add_dependencies(l10n ${_base_name}_l10n) - # add_dependencies(${_target} ${_target}_qrc) - # target_sources(${_target} PUBLIC ${_qrc}) + # add_dependencies(${_target} ${_target}_qrc) + # target_sources(${_target} PUBLIC ${_qrc}) set(${outfiles} ${${outfiles}} PARENT_SCOPE) endfunction()