From 893c644dcfa520a2912c9f71c76c281c6006f597 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 22 May 2019 11:06:01 +0200 Subject: Support standalone tests building Change-Id: I851619f838ad30967e1ad7634dc0e5c86491c1a0 Reviewed-by: Tobias Hunger --- tests/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tests') 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() -- cgit v1.2.1