summaryrefslogtreecommitdiffstats
path: root/translations
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-02-26 14:08:11 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-02-26 15:18:55 +0100
commit65e68f5d13fbff59758b2d3aa3315097f5e902fe (patch)
tree6b89f48cadbde40c63fdeb48a8b30304c726622b /translations
parentf8f6e3d653486e16471e3d35b82b8e43675e2af9 (diff)
Create ts-<language> targets
...to parse the code for new translated messages for all catalogs of a specific language like it was possible with the qmake build. Change-Id: I8569a09c67058e7a389b3730cbad69f6ac325aeb Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'translations')
-rw-r--r--translations/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt
index 95590cc..051b138 100644
--- a/translations/CMakeLists.txt
+++ b/translations/CMakeLists.txt
@@ -64,6 +64,11 @@ function(add_ts_targets catalog)
"${CMAKE_CURRENT_SOURCE_DIR}/${catalog}_${lang}.ts"
)
add_dependencies(ts-${catalog}-all ${lang_target_name})
+
+ if(NOT TARGET ts-${lang})
+ add_custom_target(ts-${lang})
+ endif()
+ add_dependencies(ts-${lang} ${lang_target_name})
endforeach()
add_ts_target(ts-${catalog}-untranslated
${source_files_list_file}