W3cubDocs

/Qt

CMake Commands in Qt6 Core

The following CMake commands are defined when Qt6::Core is loaded, for instance with

find_package(Qt6 COMPONENTS Core REQUIRED)

See also CMake Command Reference.

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_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_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

Calls moc on an input file.

qt_import_plugins

Specifies a custom set of plugins to import for a static Qt build.

qt_wrap_cpp

Creates .moc files from sources.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/cmake-commands-qtcore.html