Set version for tst_qguiapplication and tst_qcoreapplication

In tst_qguiapplication and tst_qcoreapplication,
the application version should be set. On Android, this
is done using QT_ANDROID_VERSION_CODE.

Pick-to: 6.2 6.3
Change-Id: I6b473ad25092fb24df9400e0ab8fbb8ea4edbb6a
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
Andreas Buhr 2022-02-14 16:34:18 +01:00
parent 963d60ead4
commit 4e77f5ce0a
2 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,11 @@ if (APPLE)
endif()
# special case end
if (ANDROID)
set_property(TARGET tst_qcoreapplication PROPERTY QT_ANDROID_VERSION_NAME ${target_version})
endif()
#### Keys ignored in scope 1:.:.:qcoreapplication.pro:<TRUE>:
# QMAKE_INFO_PLIST = "$$PWD/Info.plist"
# _REQUIREMENTS = "qtConfig(private_tests)"

View File

@ -35,6 +35,9 @@ qt_internal_add_test(tst_qguiapplication
BUILTIN_TESTDATA
)
if (ANDROID)
set_property(TARGET tst_qguiapplication PROPERTY QT_ANDROID_VERSION_NAME ${target_version})
endif()
# special case begin
if (APPLE)
set_property(TARGET tst_qguiapplication PROPERTY MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist")