qt_android_apply_arch_suffix
配置目标二进制文件的名称,使其包含特定于架构的后缀。
该命令定义在Qt6 包的Core 组件中,可按如下方式加载:
find_package(Qt6 REQUIRED COMPONENTS Core)该命令于 Qt 6.0 中引入。
警告: 自 Qt 6.5 起,此 命令已弃用。请改用qt_add_executable()或qt_add_library()。
注意: 仅当目标平台为 Android 时才应调用此 命令。
语法
qt_android_apply_arch_suffix(target)如果禁用了无版本命令,请改用qt6_android_apply_arch_suffix() 。它支持与本命令相同的参数集。
描述
CMake 的SUFFIX 目标属性用于控制目标构建二进制文件名称的后缀。此命令可方便地将该属性设置为特定于架构的值。当将针对不同 Android 架构的多个构建安装到同一安装位置时,此功能非常有用,因为它可以防止不同架构的库相互覆盖。
© 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.