diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2020-01-06 13:35:19 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2020-01-06 13:13:38 +0000 |
commit | 7f695b0a198937f26adb354f36f6796734af618a (patch) | |
tree | c0613cf07faa4510f0b428efe4135f7f9fc9363e /tests | |
parent | 25ca99752c46e4266e6a90c31a9fb9e9fa4e5f54 (diff) | |
download | qtsvg-7f695b0a198937f26adb354f36f6796734af618a.tar.gz |
Fix standalone tests builds
Align with de3a806def4b9a754825a2233c9d4952a9b2d0eb in qtbase.
Change-Id: I7418cd1cdb946e3ebc06c97c3aa41cf219d615d6
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 68c2db0..67abeef 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,10 +1,7 @@ # special case begin -if(NOT TARGET Qt::Test) - cmake_minimum_required(VERSION 3.14.0) - project(QtSvgTests C CXX ASM) - find_package(Qt6 REQUIRED COMPONENTS BuildInternals Core Test) - find_package(Qt6 COMPONENTS Svg Widgets Xml) - qt_set_up_standalone_tests_build() +if(QT_BUILD_STANDALONE_TESTS) + qt_find_package(Qt6 REQUIRED COMPONENTS BuildInternals Core Test) + qt_find_package(Qt6 COMPONENTS Svg Widgets Xml) endif() # special case end |