diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-05-22 11:06:01 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-05-22 14:05:22 +0000 |
commit | 893c644dcfa520a2912c9f71c76c281c6006f597 (patch) | |
tree | c289be55957af6c9f9aaa04fa589f02d8ebd942d /tests | |
parent | 02b9da194f60b87ae291aa13401be6759533ddcf (diff) | |
download | qtsvg-893c644dcfa520a2912c9f71c76c281c6006f597.tar.gz |
Support standalone tests building
Change-Id: I851619f838ad30967e1ad7634dc0e5c86491c1a0
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0653827..fd61af0 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1 +1,11 @@ -add_subdirectory(auto) +# special case begin +if(NOT TARGET Qt::Test) + cmake_minimum_required(VERSION 3.14.0) + project(QtSvgTests C CXX ASM) + find_package(Qt5 REQUIRED COMPONENTS BuildInternals Core Test) + find_package(Qt5 COMPONENTS Svg Widgets Xml) + qt_set_up_standalone_tests_build() +endif() +# special case end + +qt_build_tests() |