CMake Command Reference | Build with CMake | Qt 6.10.3
Description: Provides a complete reference for CMake commands implemented in Qt.

- Qt 6.10
- Build with CMake
- CMake Command Reference
- Qt 6.10.3 Reference Documentation

Qt 5 and Qt 6 compatibility ◦ CMake Variable Reference

# CMake Command Reference

### `Qt6::Core`

qt_add_android_permission | Adds an Android permission to the target executable
qt_add_big_resources | Compiles big binary resources into object code
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 | Creates and finalizes a library
qt_add_plugin | Creates a Qt plugin target
qt_add_resources | Compiles binary resources into source code
qt_add_win_app_sdk | Adds the Windows App SDK library to the application
qt_allow_non_utf8_sources | Prevents forcing source files to be treated as 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_deploy_qt_conf | Write a qt.conf file at deployment time
qt_deploy_runtime_dependencies | Deploy Qt plugins, Qt and non-Qt libraries needed by an executable
qt_deploy_translations | Deploy Qt translations needed by an executable
qt_disable_unicode_defines | Prevents some unicode-related compiler definitions being set automatically on a target
qt_extract_metatypes | Extracts metatypes from a Qt target and generates an associated metatypes.json file
qt_finalize_project | Handles various common platform-specific tasks associated with a Qt project
qt_finalize_target | Handles various common platform-specific tasks associated with Qt targets
qt_generate_deploy_app_script | Generate a deployment script for an application
qt_generate_deploy_script | Generate a custom deployment script
qt_generate_moc | Calls moc on an input file
qt_import_plugins | Specifies a custom set of plugins to import or exclude
qt_policy | Modify the default behavior of Qt's CMake API
qt_set_finalizer_mode | Customizes aspects of a target's finalization
qt_standard_project_setup | Setup project-wide defaults to a standard arrangement
qt_wrap_cpp | Creates .moc files from sources

### `Qt6::DBus`

qt_add_dbus_adaptor | Generates an adaptor class for a D-Bus interface
qt_add_dbus_interface | Generates C++ sources implementing an interface for a D-Bus interface description file
qt_add_dbus_interfaces | Generates C++ sources implementing interfaces for D-Bus interface description files
qt_generate_dbus_interface | Generates a D-Bus interface from a header file

### `Qt6::Grpc`

qt_add_grpc | Generates Qt-based C++ services using a protobuf schema

### `Qt6::InterfaceFramework`

### `Qt6::LinguistTools`

qt_add_lrelease | Add targets to transform Qt Linguist .ts files into .qm files
qt_add_lupdate | Add targets to generate or update Qt Linguist .ts files
qt_add_translation | Compiles Qt Linguist .ts files into .qm files
qt_add_translations | Add targets to update and transform Qt Linguist .ts files into .qm files
qt_collect_translation_source_targets | Collects targets that are eligible for translation
qt_create_translation | Sets up the Qt Linguist translation toolchain

### `Qt6::Multimedia`

qt_add_ios_ffmpeg_libraries | Auxiliary function which embeds FFmpeg binaries in iOS app bundle

### `Qt6::Protobuf`

qt_add_protobuf | Generates Qt-based C++ source code using a protobuf schema

### `Qt6::Qml`

qt_add_qml_module | Defines a QML module
qt_add_qml_plugin | Defines a plugin associated with a QML module
qt_deploy_qml_imports | Deploy the runtime components of QML modules needed by an executable
qt_generate_deploy_qml_app_script | Generate a deployment script for a QML application
qt_generate_foreign_qml_types | Registers types from one target in a QML module
qt_import_qml_plugins | Ensures QML plugins needed by a target are imported for static builds
qt_query_qml_module | Retrieve information about a QML module
qt_target_compile_qml_to_cpp |
qt_target_qml_sources | Add qml files and resources to an existing QML module target

### `Qt6::Quick3D`

qt_add_lightprobe_images | Bakes HDRI map files to KTX files, adding them as Qt resouces
qt_add_materials | Generates shaders from files, adding them as Qt resources

### `Qt6::RemoteObjects`

qt_add_repc_merged | Creates C++ header files for source and replica types from the Qt Remote Objects .rep files
qt_add_repc_replicas | Creates C++ header files for replica types from the Qt Remote Objects .rep files
qt_add_repc_sources | Creates C++ header files for source types from the Qt Remote Objects .rep files
qt_reps_from_headers | Creates .rep files from the QObject header files

### `Qt6::Scxml`

qt_add_statecharts | Converts .scxml files into C++ source code

### `Qt6::ShaderTools`

Qt Shader Tools Build System Integration | Compiles shaders and adds them to a Qt resource

### `Qt6::WaylandClient`

qt_generate_wayland_protocol_client_sources | Generates client-side C++ bindings for a Wayland protocol .XML file

### `Qt6::WaylandCompositor`

qt_generate_wayland_protocol_server_sources | Generates server-side C++ bindings for a Wayland protocol .XML file

### `Qt6::WebEngineCore`

qt_add_webengine_dictionary | Converts the hunspell dictionary format into bdict binary format

### `Qt6::Widgets`

qt_add_ui | Adds .ui files to a target
qt_wrap_ui | Creates sources for .ui files

Qt 5 and Qt 6 compatibility ◦ CMake Variable Reference