diff options
author | Andreas Buhr <andreas.buhr@qt.io> | 2022-02-14 16:34:18 +0100 |
---|---|---|
committer | Andreas Buhr <andreas.buhr@qt.io> | 2022-02-17 15:51:29 +0100 |
commit | 4e77f5ce0a69765ae7571a8981536f8494184f87 (patch) | |
tree | a1fe331769a33a517a3282ba10c12f1f19961ee3 /tests/auto/corelib/kernel | |
parent | 963d60ead41ca8f5e9f47cc127926ca77054bd49 (diff) |
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>
Diffstat (limited to 'tests/auto/corelib/kernel')
-rw-r--r-- | tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt b/tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt index 24be474f90..92d4b03d26 100644 --- a/tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt +++ b/tests/auto/corelib/kernel/qcoreapplication/CMakeLists.txt @@ -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)" |