-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_cppmodule.pro
More file actions
45 lines (31 loc) · 1.03 KB
/
test_cppmodule.pro
File metadata and controls
45 lines (31 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
TEMPLATE = lib
TARGET = test_cppmoduleplugin
QT += qml quick
QT -= gui
CONFIG += plugin c++14 qmltypes
TARGET = $$qtLibraryTarget($$TARGET)
QML_IMPORT_NAME = test_module.test_cppmodule
QML_IMPORT_MAJOR_VERSION = 0.1
uri = test_module.test_cppmodule
# Input
SOURCES += \
$$PWD/diagrams/legenddiagram.cpp \
$$PWD/diagrams/linediagrammodel.cpp \
$$PWD/diagrams/valuediagram.cpp \
$$PWD/test_cppmodule.cpp
HEADERS += \
$$PWD/diagrams/legenddiagram.h \
$$PWD/diagrams/linediagrammodel.h \
$$PWD/diagrams/valuediagram.h \
$$PWD/test_cppmodule.h
DISTFILES += \
$$files(qml/*.qml)
OTHER_FILES = qmldir
MODULENAME = test_module/test_cppmodule
TARGETPATH = $$[QT_INSTALL_QML]/$$MODULENAME
import.files += qmldir LineDiagram.qml LineDiagramItem.qml plugin.qmltypes
import.path = $$TARGETPATH
target.path = $$TARGETPATH
qmltypes.commands = qmlplugindump test_module.test_cppmodule 0.1 > $$TARGETPATH/plugin.qmltypes
QMAKE_EXTRA_TARGETS += qmltypes
INSTALLS += target import