imageprovider.pro Example File

imageprovider/imageprovider.pro

  TEMPLATE = lib
  CONFIG += plugin
  QT += qml quick

  DESTDIR = ImageProviderCore
  TARGET  = qmlimageproviderplugin

  SOURCES += imageprovider.cpp

  EXAMPLE_FILES = imageprovider-example.qml

  target.path = $$[QT_INSTALL_EXAMPLES]/quick/imageprovider/ImageProviderCore
  qml.files = ImageProviderCore/qmldir
  qml.path = $$[QT_INSTALL_EXAMPLES]/quick/imageprovider/ImageProviderCore
  INSTALLS = target qml

  CONFIG += install_ok  # Do not cargo-cult this!