From 4753d69d8934258de7fb64550e50a5cbb9b5603f Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Mon, 24 Feb 2020 13:07:24 +0100 Subject: 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 --- tests/auto/gui/kernel/qguiapplication/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3