##// END OF EJS Templates
Examples build setup cleanup
Michal Klocek -
r252:43766a725919
parent child
Show More
@@ -1,7 +1,7
1 !include( ../example.pri ) {
1 !include( ../example.pri ) {
2 error( "Couldn't find the example.pri file!" )
2 error( "Couldn't find the example.pri file!" )
3 }
3 }
4 TARGET = axisChart
4 TARGET = axischart
5 SOURCES = main.cpp
5 SOURCES = main.cpp
6
6
7
7
@@ -1,17 +1,10
1 !include( ../../common.pri ) {
1 !include( ../example.pri ) {
2 error( "Couldn't find the common.pri file!" )
2 error( "Couldn't find the example.pri file!" )
3 }
4
5 !include( ../../integrated.pri ) {
6 error( "Couldn't find the integrated.pri file !")
7 }
3 }
8
4
9 TARGET = barchart
5 TARGET = barchart
10 TEMPLATE = app
11 QT += core gui
12 SOURCES += main.cpp \
6 SOURCES += main.cpp \
13 chartwidget.cpp
7 chartwidget.cpp
14
15 HEADERS += \
8 HEADERS += \
16 chartwidget.h
9 chartwidget.h
17
10
@@ -1,14 +1,8
1 !include( ../../common.pri ) {
1 !include( ../example.pri ) {
2 error( "Couldn't find the common.pri file!" )
2 error( "Couldn't find the example.pri file!" )
3 }
3 }
4
4
5 !include( ../../integrated.pri ) {
5 TARGET = colorlinechart
6 error( "Couldn't find the integrated.pri file !")
7 }
8
9 TARGET = colorlineChart
10 TEMPLATE = app
11 QT += core gui
12 SOURCES += main.cpp
6 SOURCES += main.cpp
13
7
14
8
@@ -1,14 +1,8
1 !include( ../../common.pri ) {
1 !include( ../example.pri ) {
2 error( "Couldn't find the common.pri file!" )
2 error( "Couldn't find the example.pri file!" )
3 }
3 }
4
4 QT+=opengl
5 !include( ../../integrated.pri ) {
5 TARGET = dynamiclinechart
6 error( "Couldn't find the integrated.pri file !")
7 }
8
9 TARGET = dynamicLineChart
10 TEMPLATE = app
11 QT += core gui opengl
12 SOURCES += main.cpp
6 SOURCES += main.cpp
13 HEADERS += wavegenerator.h
7 HEADERS += wavegenerator.h
14
8
@@ -6,5 +6,11
6 error( "Couldn't find the integrated.pri file !")
6 error( "Couldn't find the integrated.pri file !")
7 }
7 }
8
8
9 DESTDIR = $$CHART_BUILD_BIN_DIR
10 OBJECTS_DIR = $$CHART_BUILD_DIR/bin/$$TARGET
11 MOC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET
12 UI_DIR = $$CHART_BUILD_DIR/bin/$$TARGET
13 RCC_DIR = $$CHART_BUILD_DIR/bin/$$TARGET
14
9 TEMPLATE = app
15 TEMPLATE = app
10 QT += core gui No newline at end of file
16 QT += core gui
@@ -1,25 +1,11
1 #-------------------------------------------------
1 !include( ../example.pri ) {
2 #
2 error( "Couldn't find the example.pri file!" )
3 # Project created by QtCreator 2012-02-14T15:27:32
4 #
5 #-------------------------------------------------
6
7 !include( ../../common.pri ) {
8 error( "Couldn't find the common.pri file!" )
9 }
10 !include( ../../integrated.pri ) {
11 error( "Couldn't find the integrated.pri file !")
12 }
3 }
13
4
14 QT += core gui sql
5 QT+= sql
15
16 TARGET = gdpbarchart
6 TARGET = gdpbarchart
17 TEMPLATE = app
18
19
20 SOURCES += main.cpp\
7 SOURCES += main.cpp\
21 widget.cpp
8 widget.cpp
22
23 HEADERS += widget.h
9 HEADERS += widget.h
24
10
25 COPY_DATABASE_COMMAND = $$QMAKE_COPY gdpData $$CHART_BUILD_BIN_DIR/gdpData
11 COPY_DATABASE_COMMAND = $$QMAKE_COPY gdpData $$CHART_BUILD_BIN_DIR/gdpData
@@ -1,14 +1,7
1 !include( ../../common.pri ) {
1 !include( ../example.pri ) {
2 error( "Couldn't find the common.pri file!" )
2 error( "Couldn't find the example.pri file!" )
3 }
3 }
4
4 TARGET = linechart
5 !include( ../../integrated.pri ) {
6 error( "Couldn't find the integrated.pri file !")
7 }
8
9 TARGET = lineChart
10 TEMPLATE = app
11 QT += core gui
12 SOURCES += main.cpp
5 SOURCES += main.cpp
13
6
14
7
@@ -1,18 +1,9
1 !include( ../../common.pri ) {
1 !include( ../example.pri ) {
2 error( "Couldn't find the common.pri file!" )
2 error( "Couldn't find the example.pri file!" )
3 }
3 }
4 !include( ../../integrated.pri ) {
5 error( "Couldn't find the integrated.pri file !")
6 }
7
8 QT += core gui
9
10 TARGET = multichart
4 TARGET = multichart
11 TEMPLATE = app
12
13 SOURCES += main.cpp \
5 SOURCES += main.cpp \
14 multichartwidget.cpp
6 multichartwidget.cpp
15
16 HEADERS += \
7 HEADERS += \
17 multichartwidget.h
8 multichartwidget.h
18
9
@@ -1,17 +1,10
1 !include( ../../common.pri ) {
1 !include( ../example.pri ) {
2 error( "Couldn't find the common.pri file!" )
2 error( "Couldn't find the example.pri file!" )
3 }
4
5 !include( ../../integrated.pri ) {
6 error( "Couldn't find the integrated.pri file !")
7 }
3 }
8
4
9 TARGET = percentbarchart
5 TARGET = percentbarchart
10 TEMPLATE = app
11 QT += core gui
12 SOURCES += main.cpp \
6 SOURCES += main.cpp \
13 chartwidget.cpp
7 chartwidget.cpp
14
15 HEADERS += \
8 HEADERS += \
16 chartwidget.h
9 chartwidget.h
17
10
@@ -1,19 +1,8
1 !include( ../../common.pri ) {
1 !include( ../example.pri ) {
2 error( "Couldn't find the common.pri file!" )
2 error( "Couldn't find the example.pri file!" )
3 }
3 }
4 !include( ../../integrated.pri ) {
5 error( "Couldn't find the integrated.pri file !")
6 }
7
8 QT += core gui
9
10 TARGET = piechart
4 TARGET = piechart
11 TEMPLATE = app
12
13 SOURCES += main.cpp customslice.cpp
5 SOURCES += main.cpp customslice.cpp
14 HEADERS += customslice.h
6 HEADERS += customslice.h
15
7
16 OBJECTS_DIR = tmp
17 MOC_DIR = tmp
18
19
8
@@ -1,17 +1,8
1 !include( ../../common.pri ) {
1 !include( ../example.pri ) {
2 error( "Couldn't find the common.pri file!" )
2 error( "Couldn't find the example.pri file!" )
3 }
3 }
4 !include( ../../integrated.pri ) {
5 error( "Couldn't find the integrated.pri file !")
6 }
7
8 QT += core gui
9
10 TARGET = scatter
4 TARGET = scatter
11 TEMPLATE = app
12
13 SOURCES += main.cpp
5 SOURCES += main.cpp
14
6
15 HEADERS +=
16
7
17
8
@@ -1,17 +1,9
1 !include( ../../common.pri ) {
1 !include( ../example.pri ) {
2 error( "Couldn't find the common.pri file!" )
2 error( "Couldn't find the example.pri file!" )
3 }
3 }
4
5 !include( ../../integrated.pri ) {
6 error( "Couldn't find the integrated.pri file !")
7 }
8
9 TARGET = stackedbarchart
4 TARGET = stackedbarchart
10 TEMPLATE = app
11 QT += core gui
12 SOURCES += main.cpp \
5 SOURCES += main.cpp \
13 chartwidget.cpp
6 chartwidget.cpp
14
15 HEADERS += \
7 HEADERS += \
16 chartwidget.h
8 chartwidget.h
17
9
@@ -1,14 +1,7
1 !include( ../../common.pri ) {
1 !include( ../example.pri ) {
2 error( "Couldn't find the common.pri file!" )
2 error( "Couldn't find the example.pri file!" )
3 }
3 }
4
4 TARGET = zoomlinechart
5 !include( ../../integrated.pri ) {
6 error( "Couldn't find the integrated.pri file !")
7 }
8
9 TARGET = zoomLineChart
10 TEMPLATE = app
11 QT += core gui
12 HEADERS += chartwidget.h
5 HEADERS += chartwidget.h
13 SOURCES += main.cpp chartwidget.cpp
6 SOURCES += main.cpp chartwidget.cpp
14
7
@@ -14,8 +14,6 integrated_build:{
14 }
14 }
15 }
15 }
16
16
17 DESTDIR = $$CHART_BUILD_BIN_DIR
18
19 CONFIG(debug, debug|release) {
17 CONFIG(debug, debug|release) {
20 LIBS += -lQtCommercialChartd
18 LIBS += -lQtCommercialChartd
21 #this is ugly hack to work around missing rpath, it simply copies lib
19 #this is ugly hack to work around missing rpath, it simply copies lib
@@ -8,4 +8,12
8
8
9 TEMPLATE = app
9 TEMPLATE = app
10 CONFIG += qtestlib
10 CONFIG += qtestlib
11 !contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_") No newline at end of file
11
12 DESTDIR = $$CHART_BUILD_BIN_DIR/test
13 OBJECTS_DIR = $$CHART_BUILD_DIR/test/$$TARGET
14 MOC_DIR = $$CHART_BUILD_DIR/test/$$TARGET
15 UI_DIR = $$CHART_BUILD_DIR/test/$$TARGET
16 RCC_DIR = $$CHART_BUILD_DIR/test/$$TARGET
17
18 !contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_")
19
General Comments 0
You need to be logged in to leave comments. Login now