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.