Исправлена функция для внедрения переводов

This commit is contained in:
Andrei Astafev 2020-04-13 20:55:36 +03:00
parent 450c0200a7
commit 4768c5efc7

View File

@ -37,14 +37,13 @@ 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})