CMake 文本片段
请参阅/qtbase/doc/global/macros.qdocconf,了解编写特定于 Qt 的 CMake 文档时应使用的标准文本片段:
| 宏 | 使用 |
|---|---|
| \cmakecommandandroidonly | 对于 Android 目标 |
| \cmakecommandsince | 指示引入命令的 Qt 版本 |
| \cmakepropertyandroidonly | 针对 Android 目标 |
| \cmakepropertyiosonly | 针对 iOS 目标 |
| \cmakepropertysince | 指示引入该属性的 Qt 版本 |
| \cmakepropertywebassemblyonly | 针对 WebAssembly 目标 |
| \cmakevariableandroidonly | 针对 Android 目标 |
| \cmakevariableiosonly | 针对 iOS 目标 |
| \cmakevariablesince | 指明引入变量的 Qt 版本 |
| \preliminarycmakecommand | 表示该命令在未来版本中可能会更改 |
| \preliminarycmakeproperty | 表示该属性在未来版本中可能会更改 |
| \preliminarycmakevariable | 指明变量在未来版本中可能会更改 |
| \versionlessCMakeCommandsNote | 对于所有命令,告诉用户如何使用版本化命令 |
另请参阅 宏和宏。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.