diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2016-05-11 19:11:32 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2016-08-01 12:13:39 +0000 |
commit | a0e9e3bcf9d33372728a06292cc9f138a9662572 (patch) | |
tree | 2d336f41efe1e4d9e144e8a8df27d00f70f4dd39 /examples/charts/piechart | |
parent | d137ae33ccf01882f80770919b1daa199dec7019 (diff) |
Cleanup examples build system
Make the examples self-contained and follow the way examples
are compiled in other modules, so they can be easly opened by qtc.
Change-Id: I664ba3dc21630ced5b1d14ad878a70eac0763c84
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'examples/charts/piechart')
-rw-r--r-- | examples/charts/piechart/piechart.pro | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/charts/piechart/piechart.pro b/examples/charts/piechart/piechart.pro index 7bd48514..e3767910 100644 --- a/examples/charts/piechart/piechart.pro +++ b/examples/charts/piechart/piechart.pro @@ -1,5 +1,7 @@ -!include( ../examples.pri ) { - error( "Couldn't find the examples.pri file!" ) -} -TARGET = piechart -SOURCES += main.cpp +QT += charts + +SOURCES += \ + main.cpp + +target.path = $$[QT_INSTALL_EXAMPLES]/charts/piechart +INSTALLS += target |