diff options
Diffstat (limited to 'examples/qtconcurrent/CMakeLists.txt')
-rw-r--r-- | examples/qtconcurrent/CMakeLists.txt | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/qtconcurrent/CMakeLists.txt b/examples/qtconcurrent/CMakeLists.txt index 13cfed8773..13e78678d8 100644 --- a/examples/qtconcurrent/CMakeLists.txt +++ b/examples/qtconcurrent/CMakeLists.txt @@ -1,9 +1,11 @@ -if(TARGET Qt::Gui) - add_subdirectory(map) +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +if(NOT TARGET Qt6::Concurrent) + return() endif() -if(TARGET Qt::Widgets) - add_subdirectory(imagescaling) - add_subdirectory(progressdialog) - add_subdirectory(runfunction) - add_subdirectory(wordcount) +if(TARGET Qt6::Widgets) + qt_internal_add_example(imagescaling) + qt_internal_add_example(primecounter) + qt_internal_add_example(wordcount) endif() |