73ba2ba2de
* Add support for a QT_RESOURCE_PREFIX target property, that add_qt_resource respects. This makes it convenient to add files to the resource system for a project without the need to repeat prefixes. In qmake land with multiple resources they're repeated in the foo.prefix variables or in the prefix attribute in .qrc files. * Since /qt-project.org/imports is in the default QML import search path and the hierarchy under the import search paths is "regulated", we might as well make add_qml_module set QT_RESOURCE_PREFIX on the target. We can compute the correct value for that. This allows removing the redundant prefix from the add_qt_resource() calls for the qml files. Change-Id: Ic15130dc9e432340fc3edf93e35f2a803b4b40eb Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CMake Build Bot
98 lines
2.2 KiB
CMake
98 lines
2.2 KiB
CMake
define_property(TARGET
|
|
PROPERTY
|
|
QT_PLUGINS
|
|
BRIEF_DOCS
|
|
"List of Qt plug-ins associated with a given Qt module."
|
|
FULL_DOCS
|
|
"This is a property on Qt modules.
|
|
For instance, sqlite;odbc for Sql"
|
|
)
|
|
|
|
define_property(TARGET
|
|
PROPERTY
|
|
MODULE_PLUGIN_TYPES
|
|
BRIEF_DOCS
|
|
"List of plugin categories associated to the Qt module"
|
|
FULL_DOCS
|
|
"This is a property on Qt modules.
|
|
For instance, sqldrivers for Sql."
|
|
)
|
|
|
|
define_property(TARGET
|
|
PROPERTY
|
|
QT_PLUGIN_CLASS_NAME
|
|
BRIEF_DOCS
|
|
"Class name of the Qt plug-in"
|
|
FULL_DOCS
|
|
"This is a property on Qt plug-ins.
|
|
For instance, QICOPlugin for the qico plug-in"
|
|
)
|
|
|
|
define_property(TARGET
|
|
PROPERTY
|
|
QT_MODULE
|
|
BRIEF_DOCS
|
|
"Qt module associated with a plug-in."
|
|
FULL_DOCS
|
|
"This is a property on Qt plug-ins.
|
|
For instance, Sql for qsqlite"
|
|
)
|
|
|
|
define_property(TARGET
|
|
PROPERTY
|
|
QT_DEFAULT_PLUGIN
|
|
BRIEF_DOCS
|
|
"Indicates whether a plug-in is added by default."
|
|
FULL_DOCS
|
|
"This is a property on Qt plug-ins.
|
|
It is mainly used to indicate if a plug-in should be added
|
|
to the default set of plug-ins when building a static app -
|
|
for instance, which QPA should be linked."
|
|
)
|
|
|
|
define_property(GLOBAL
|
|
PROPERTY
|
|
QT_KNOWN_PLUGINS
|
|
BRIEF_DOCS
|
|
""
|
|
FULL_DOCS
|
|
""
|
|
)
|
|
|
|
define_property(TARGET
|
|
PROPERTY
|
|
QT_QML_MODULE_TARGET_PATH
|
|
BRIEF_DOCS
|
|
"Specifies the target path for a qml module"
|
|
FULL_DOCS
|
|
"Specifies the target path for a qml module"
|
|
)
|
|
|
|
define_property(TARGET
|
|
PROPERTY
|
|
QT_QML_MODULE_URI
|
|
BRIEF_DOCS
|
|
"Specifies the URI for a qml module"
|
|
FULL_DOCS
|
|
"Specifies the URI for a qml module"
|
|
)
|
|
|
|
define_property(TARGET
|
|
PROPERTY
|
|
QT_RESOURCE_PREFIX
|
|
BRIEF_DOCS
|
|
"Specifies the default Qt resource prefix."
|
|
FULL_DOCS
|
|
"When using add_qt_resource() without a PREFIX, then prefix of this target property
|
|
will be used."
|
|
)
|
|
|
|
define_property(TARGET
|
|
PROPERTY
|
|
QT_QML_MODULE_VERSION
|
|
BRIEF_DOCS
|
|
"Specifies the qml module's version."
|
|
FULL_DOCS
|
|
"Specifies the qml module's version."
|
|
)
|