定义下列 CMake 命令,当加载 Qt6::Core 时,例如采用
find_package(Qt6 COMPONENTS Core REQUIRED)
另请参阅 CMake 命令参考 .
qt_add_big_resources | 将大二进制资源,编译进目标代码。 |
qt_add_binary_resources | Creates an RCC file from a list of Qt resource files. |
qt_add_executable | Creates and finalizes an application target of a platform-specific type. |
qt_add_library | 创建并定稿库。 |
qt_add_plugin | 创建 Qt 插件目标。 |
qt_add_resources | 将二进制资源编译进源代码。 |
qt_allow_non_utf8_sources | 防止强制将源文件视为 UTF-8 for Windows。 |
qt_android_add_apk_target | Defines a build target that runs androiddeployqt to produce an APK. |
qt_android_apply_arch_suffix | Configures the target binary's name to include an architecture-specific suffix. |
qt_android_generate_deployment_settings | Generates the deployment settings file needed by androiddeployqt. |
qt_disable_unicode_defines | Prevents some unicode-related compiler definitions being set automatically on a target. |
qt_finalize_target | Handles various common platform-specific tasks associated with Qt targets. |
qt_generate_moc | 调用输入文件中的 MOC (元对象编译器)。 |
qt_import_plugins | Specifies a custom set of plugins to import for a static Qt build. |
qt_wrap_cpp | Creates .moc files from sources. |