Изменена функция для переводов
This commit is contained in:
parent
0eb74fc971
commit
7c62d755b9
@ -1,4 +1,4 @@
|
||||
function(qt_translation)
|
||||
function(qt5_translation)
|
||||
find_package(
|
||||
Qt5
|
||||
COMPONENTS LinguistTools
|
||||
@ -6,13 +6,13 @@ function(qt_translation)
|
||||
|
||||
set(options)
|
||||
set(oneValueArgs TARGET TS_DIR)
|
||||
set(multiValueArgs LANGUAGES)
|
||||
set(multiValueArgs SOURCES LANGUAGES)
|
||||
|
||||
cmake_parse_arguments(_QTTR "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
set(_target ${_QTTR_TARGET})
|
||||
set(_sources ${_QTTR_SOURCES})
|
||||
set(_ts_dir ${_QTTR_TS_DIR})
|
||||
set(_languages ${_QTTR_LANGUAGES})
|
||||
get_target_property(_sources ${_target} SOURCES)
|
||||
|
||||
set(L10N_QRC_BODY "")
|
||||
make_directory(${_ts_dir})
|
||||
|
Loading…
Reference in New Issue
Block a user