diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2020-02-24 13:07:24 +0100 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2020-02-25 16:47:08 +0100 |
commit | 4753d69d8934258de7fb64550e50a5cbb9b5603f (patch) | |
tree | 9f66a287086c4d53d241b77abb49e828edcbdd64 | |
parent | 92ee6dcec0ea6fa60ac29e0e9524e25921a1be59 (diff) |
CMake: Fix tst_qguiapplication test
Test was failing due to missing windows resource files which contain the
version information for the executable.
Change-Id: I19b0c747c6b833bac64f3667e9286350e7842b7c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | tests/auto/gui/kernel/qguiapplication/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/gui/kernel/qguiapplication/CMakeLists.txt b/tests/auto/gui/kernel/qguiapplication/CMakeLists.txt index 5bfb10eba9..24fa6572c1 100644 --- a/tests/auto/gui/kernel/qguiapplication/CMakeLists.txt +++ b/tests/auto/gui/kernel/qguiapplication/CMakeLists.txt @@ -8,7 +8,16 @@ endif() ## tst_qguiapplication Test: ##################################################################### +# special case begin +if (WIN32) + set(target_version "1.2.3.4") +else() + set(target_version "1.2.3") +endif() +# special case end + add_qt_test(tst_qguiapplication + VERSION ${target_version} SOURCES ../../../corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp ../../../corelib/kernel/qcoreapplication/tst_qcoreapplication.h # special case tst_qguiapplication.cpp |