Document how to use CMake for Qt Concurrent
Task-number: QTBUG-73058 Change-Id: I11398c5837b45ccacb9232609317213133ef20ea Reviewed-by: Kai Koehne <kai.koehne@qt.io>bb10
parent
9980ba5ba5
commit
4f59d94bf3
|
|
@ -27,15 +27,16 @@ qhp.QtConcurrent.subprojects.classes.sortPages = true
|
|||
|
||||
tagfile = ../../../doc/qtconcurrent/qtconcurrent.tags
|
||||
|
||||
depends += qtcore qtdoc
|
||||
depends += qtcore qtdoc qmake qtcmake
|
||||
|
||||
headerdirs += ..
|
||||
|
||||
sourcedirs += ..
|
||||
|
||||
exampledirs += ../../../examples/qtconcurrent \
|
||||
../ \
|
||||
snippets
|
||||
snippets \
|
||||
.. \
|
||||
.
|
||||
|
||||
manifestmeta.highlighted.names = "QtConcurrent/QtConcurrent Progress Dialog Example"
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
#! [cmake_use]
|
||||
find_package(Qt6 COMPONENTS Concurrent REQUIRED)
|
||||
target_link_libraries(mytarget Qt::Concurrent)
|
||||
#! [cmake_use]
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#! [qmake_use]
|
||||
QT += concurrent
|
||||
#! [qmake_use]
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2018 The Qt Company Ltd.
|
||||
** Copyright (C) 2020 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the documentation of the Qt Toolkit.
|
||||
|
|
@ -31,6 +31,14 @@
|
|||
|
||||
\brief The Qt Concurrent module contains functionality to support concurrent execution of program code.
|
||||
|
||||
\include module-use.qdocinc using qt module
|
||||
\snippet snippets/CMakeLists.txt cmake_use
|
||||
|
||||
See also the \l[QtDoc]{Building with CMake} overview.
|
||||
|
||||
\include module-use.qdocinc building with qmake
|
||||
\snippet snippets/snippets.pro qmake_use
|
||||
|
||||
\section1 Getting Started
|
||||
|
||||
The QtConcurrent namespace provides high-level APIs that make it
|
||||
|
|
|
|||
Loading…
Reference in New Issue