diff options
author | Kai Koehne <kai.koehne@qt.io> | 2020-05-22 15:19:19 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2020-05-26 15:11:41 +0200 |
commit | ec3ba7209e624873da83ed8785eb4822ce0be2f7 (patch) | |
tree | f94e88de08d0f8c299c31076bcb50105f24b119e /src/testlib/doc/src/qttest-index.qdoc | |
parent | cede00ec892805ad0f04db6566bf002195c4cb09 (diff) |
Document how to use CMake for Qt TestLib
Task-number: QTBUG-73058
Change-Id: I6e29a83a1346ea0d2f94fcf445e1de9c07072aa6
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/testlib/doc/src/qttest-index.qdoc')
-rw-r--r-- | src/testlib/doc/src/qttest-index.qdoc | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/testlib/doc/src/qttest-index.qdoc b/src/testlib/doc/src/qttest-index.qdoc index d1b24a7858..9182881a2a 100644 --- a/src/testlib/doc/src/qttest-index.qdoc +++ b/src/testlib/doc/src/qttest-index.qdoc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2019 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. @@ -40,17 +40,13 @@ to work with the Qt version it was developed against. However, source compatibility is guaranteed. - \section1 Getting Started + \include module-use.qdocinc using qt module + \snippet snippets/CMakeLists.txt cmake_use - To enable Qt Test in a project, add this directive into the C++ files: + See also the \l[QtDoc]{Building with CMake} overview. - \snippet code/doc_src_qttest.cpp 0 - - \if !define(qtforpython) - To link against Qt Test, add this line to the project file: - - \snippet code/doc_src_qttest.pro 1 - \endif + \include module-use.qdocinc building with qmake + \snippet snippets/snippets.pro qmake_use \section1 Articles and Guides |