diff options
Diffstat (limited to 'generator/qtcpp/templates/project.pro')
-rw-r--r-- | generator/qtcpp/templates/project.pro | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/generator/qtcpp/templates/project.pro b/generator/qtcpp/templates/project.pro new file mode 100644 index 0000000..045895a --- /dev/null +++ b/generator/qtcpp/templates/project.pro @@ -0,0 +1,33 @@ +{# Copyright (c) Pelagicore AB 2016 #} +############################################################################# +## This is an auto-generated file. +## Do not edit! All changes made to it will be lost. +############################################################################# + +TEMPLATE = lib +QT += qml quick +CONFIG += qt plugin c++11 +TARGET = $$qtLibraryTarget({{module|lower}}) + +uri = {{module}} + +include( {{module|lower}}.pri ) + + +DISTFILES = qmldir + +!equals(_PRO_FILE_PWD_, $$OUT_PWD) { + copy_qmldir.target = $$OUT_PWD/qmldir + copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir + copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\" + QMAKE_EXTRA_TARGETS += copy_qmldir + PRE_TARGETDEPS += $$copy_qmldir.target +} + +qmldir.files = qmldir +unix { + installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /) + qmldir.path = $$installPath + target.path = $$installPath + INSTALLS += target qmldir +} |