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
|
QT += qml remoteobjects
TEMPLATE = lib
CONFIG += plugin
REPC_REPLICA += $$PWD/../timemodel.rep
DESTDIR = imports/TimeExample
TARGET = qmlqtimeexampleplugin
SOURCES += plugin.cpp
pluginfiles.files += \
imports/TimeExample/qmldir \
imports/TimeExample/center.png \
imports/TimeExample/clock.png \
imports/TimeExample/Clock.qml \
imports/TimeExample/hour.png \
imports/TimeExample/minute.png
qml.files = plugins.qml
qml.path += $$[QT_INSTALL_EXAMPLES]/remoteobjects/plugins
target.path += $$[QT_INSTALL_EXAMPLES]/remoteobjects/plugins/imports/TimeExample
pluginfiles.path += $$[QT_INSTALL_EXAMPLES]/remoteobjects/plugins/imports/TimeExample
INSTALLS += target qml pluginfiles
CONFIG += install_ok # Do not cargo-cult this!
contains(QT_CONFIG, c++11): CONFIG += c++11
|