From a0e9e3bcf9d33372728a06292cc9f138a9662572 Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Wed, 11 May 2016 19:11:32 +0200 Subject: 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 Reviewed-by: Miikka Heikkinen --- examples/charts/barmodelmapper/barmodelmapper.pro | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'examples/charts/barmodelmapper') diff --git a/examples/charts/barmodelmapper/barmodelmapper.pro b/examples/charts/barmodelmapper/barmodelmapper.pro index 91b8f367..45a5e224 100644 --- a/examples/charts/barmodelmapper/barmodelmapper.pro +++ b/examples/charts/barmodelmapper/barmodelmapper.pro @@ -1,16 +1,13 @@ -!include( ../examples.pri ) { - error( "Couldn't find the examples.pri file!" ) -} +QT += charts -QT += core gui +HEADERS += \ + customtablemodel.h \ + tablewidget.h -TARGET = barmodelmapper -TEMPLATE = app +SOURCES += \ + customtablemodel.cpp \ + main.cpp \ + tablewidget.cpp - -SOURCES += main.cpp\ - tablewidget.cpp \ - customtablemodel.cpp - -HEADERS += tablewidget.h \ - customtablemodel.h +target.path = $$[QT_INSTALL_EXAMPLES]/charts/barmodelmapper +INSTALLS += target -- cgit v1.2.3