diff options
author | Arjen Hiemstra <ahiemstra@heimr.nl> | 2021-08-02 15:01:13 +0200 |
---|---|---|
committer | Arjen Hiemstra <ahiemstra@heimr.nl> | 2022-01-18 12:09:57 +0000 |
commit | 3813fd1bc97fa6bb2189cc9586f77be4c30478d6 (patch) | |
tree | a579dccf4ba1e0bccc58da42c3c39a97a569303b /tests/ECMQmlModuleTest/qmlmodule.h | |
parent | f4049c5429afc3e195a60984922b7cb7276d908f (diff) | |
download | extra-cmake-modules-3813fd1bc97fa6bb2189cc9586f77be4c30478d6.tar.gz extra-cmake-modules-3813fd1bc97fa6bb2189cc9586f77be4c30478d6.tar.bz2 |
Introduce ECMQmlModule.cmake
This contains some helper functions to make it easier to create QML
modules through CMake. It takes care of several things that currently
need to be done manually.
It adds four tests for the four primary ways that it can be used,
either as shared/static library and with or without C++ plugin.
Diffstat (limited to 'tests/ECMQmlModuleTest/qmlmodule.h')
-rw-r--r-- | tests/ECMQmlModuleTest/qmlmodule.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ECMQmlModuleTest/qmlmodule.h b/tests/ECMQmlModuleTest/qmlmodule.h new file mode 100644 index 00000000..49cd83a9 --- /dev/null +++ b/tests/ECMQmlModuleTest/qmlmodule.h @@ -0,0 +1,21 @@ +/** + * SPDX-FileCopyrightText: 2021 Arjen Hiemstra <ahiemstra@heimr.nl> + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef QMLMODULE_H +#define QMLMODULE_H + +#include <QtQml/QQmlExtensionPlugin> + +class QmlModule : public QQmlExtensionPlugin +{ + Q_OBJECT + Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") + +public: + void registerTypes(const char* uri) override; +}; + +#endif |