diff options
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() |