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.