diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-05-22 11:07:14 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-06-03 12:54:05 +0000 |
commit | 2a9ae46b62e90db58c2d81a70feb5b884c9994d0 (patch) | |
tree | 2c62c6cdad7bb1e67f3a109a47e236896cba6f43 /tests | |
parent | 9443239c2c01810189d63854393d43c493201c66 (diff) |
Support standalone tests building
Change-Id: Ibcc29db9193a673b5b080ba79075cb50c89e4298
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f695a22..757c418 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,4 +1,13 @@ # Generated from tests.pro. -add_subdirectory(auto) -add_subdirectory(benchmarks) +# special case begin +if(NOT TARGET Qt::Test) + cmake_minimum_required(VERSION 3.14.0) + project(QtImageFormatsTests C CXX ASM) + find_package(Qt5 REQUIRED COMPONENTS BuildInternals Core Test) + find_package(Qt5 COMPONENTS Gui) + qt_set_up_standalone_tests_build() +endif() +# special case end + +qt_build_tests() |