Debian Codegraph @

doc/global/includes/module-use.qdocinc

raw
1 /****************************************************************************
2 **
3 ** Copyright (C) 2019 The Qt Company Ltd.
4 ** Contact: https://www.qt.io/licensing/
5 **
6 ** This file is part of the documentation of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:FDL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and The Qt Company. For licensing terms
14 ** and conditions see https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
16 **
17 ** GNU Free Documentation License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Free
19 ** Documentation License version 1.3 as published by the Free Software
20 ** Foundation and appearing in the file included in the packaging of
21 ** this file. Please review the following information to ensure
22 ** the GNU Free Documentation License version 1.3 requirements
23 ** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
24 ** $QT_END_LICENSE$
25 **
26 ****************************************************************************/
27
28 //! [using qt module]
29
30 \section1 Using the Module
31
32 Using a Qt module requires linking against the module library, either
33 directly or through other dependencies. Several build tools have dedicated
34 support for this, including \l{CMake Documentation}{CMake} and
35 \l{qmake}.
36
37 \section2 Building with CMake
38
39 Use the \c{find_package()} command to locate the needed module components in
40 the \c{Qt5} package:
41
42 //! [using qt module]
43
44
45 //! [building with qmake]
46
47 \section2 Building with qmake
48
49 To configure the module for building with qmake, add the module as a value
50 of the \c QT variable in the project's .pro file:
51
52 //! [building with qmake]