summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-10-13 10:41:02 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-10-13 11:28:13 +0000
commit5af54b2040a04015627d65e96b77f7d8df4b010e (patch)
tree19039dd5b186ad5468554183a7381b4faa02315e /tests
parentbc7639620a13a60c249afce60c2b238da16d6e15 (diff)
downloadqttools-5af54b2040a04015627d65e96b77f7d8df4b010e.tar.gz
qt_add_lupdate: Fix SOURCES and INCLUDE_DIRECTORIES arguments
Both arguments did not properly set the passed values. Fixes: QTBUG-97389 Change-Id: I686ac6d100dd9cce0b1214568ef01144677e5366 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 23b348e9e9583c8face308e58fcd2ac14f905b4d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/cmake/test_translation_api/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/cmake/test_translation_api/CMakeLists.txt b/tests/auto/cmake/test_translation_api/CMakeLists.txt
index 9d1394566..ea20ff320 100644
--- a/tests/auto/cmake/test_translation_api/CMakeLists.txt
+++ b/tests/auto/cmake/test_translation_api/CMakeLists.txt
@@ -118,6 +118,18 @@ if("${staticlib1_resource_targets}" STREQUAL "")
message(FATAL_ERROR "staticlib1_resource_targets is empty.")
endif()
+# Explicitly specify SOURCES.
+create_app(app6)
+qt6_add_translations(app6
+ TS_FILES myobject_cs.ts
+ SOURCES myi18nobject.cpp)
+
+# Explicitly specify INCLUDE_DIRECTORIES.
+create_app(app7)
+qt6_add_translations(app7
+ TS_FILES myobject_nl.ts
+ INCLUDE_DIRECTORIES some_dir)
+
# Build the update_translations target
add_custom_target(my_all_target
ALL