Doc: Describe using precompiled headers in generic projects

Users can add the pch tag after a file path in .files.

Task-number: QTCREATORBUG-26610
Change-Id: I55cc6ef86c6371658845d233614bebad2a20e35d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Leena Miettinen
2022-02-03 16:10:56 +01:00
parent 75ef67615d
commit da95472eb7

View File

@@ -113,6 +113,16 @@
git ls-files "*.cpp" "*.h" > MyProject.files git ls-files "*.cpp" "*.h" > MyProject.files
\endcode \endcode
\section2 Precompiled Headers
To use precompiled headers in a generic project, add the \c pch tag after
a file path in the \c .files file, separated by the pipe character (|).
For example:
\badcode
src/pch.h|pch
\endcode
\section1 Specifying Include Paths and Framework Paths \section1 Specifying Include Paths and Framework Paths
The include paths are specified in the \tt{.includes} file, one include The include paths are specified in the \tt{.includes} file, one include