CMake Text Snippets | Qt 6.11

- Qt 6.11
- QDoc Manual
- Macros
- CMake Text Snippets
- Qt 6.11.2 Reference Documentation

Macros ◦ HTML and DocBook Formatting

# CMake Text Snippets

See /qtbase/doc/global/macros.qdocconf for standard text snippets that you should use when writing Qt-specific CMake documentation:

Macro | Use
--- | ---
\cmakecommandandroidonly | For Android targets
\cmakecommandsince | To indicate which Qt version introduced the command
\cmakepropertyandroidonly | For Android targets
\cmakepropertyiosonly | For iOS targets
\cmakepropertysince | To indicate which Qt version introduced the property
\cmakepropertywebassemblyonly | For WebAssembly targets
\cmakevariableandroidonly | For Android targets
\cmakevariableiosonly | For iOS targets
\cmakevariablesince | To indicate which Qt version introduced the variable
\preliminarycmakecommand | To indicate that the command may change in future versions
\preliminarycmakeproperty | To indicate that the property may change in future versions
\preliminarycmakevariable | To indicate that the variable may change in future versions
\versionlessCMakeCommandsNote | For all commands, to tell users how to use versioned commands

See also macro and Macros.

Macros ◦ HTML and DocBook Formatting