##// END OF EJS Templates
Different file name for widget in debug build
Jani Honkonen -
r2:87da903027e1
parent child
Show More
@@ -1,5 +1,9
1 INCLUDEPATH += $$[QT_INSTALL_HEADERS]/Charts
1 INCLUDEPATH += $$[QT_INSTALL_HEADERS]/Charts
2
2
3 contains(CHARTS, widget) {
3 contains(CHARTS, widget) {
4 CONFIG(debug, debug|release) {
5 LIBS += -lChartWidgetd
6 } else {
4 LIBS += -lChartWidget
7 LIBS += -lChartWidget
8 }
5 }
9 }
@@ -1,25 +1,29
1 TARGET = ChartWidget
1 TARGET = ChartWidget
2 TEMPLATE = lib
2 TEMPLATE = lib
3
3
4 QT += core gui
4 QT += core gui
5 contains(QT_MAJOR_VERSION, 5) {
5 contains(QT_MAJOR_VERSION, 5) {
6 QT += widgets
6 QT += widgets
7 }
7 }
8 CONFIG += debug_and_release
9 CONFIG(debug, debug|release) {
10 TARGET = ChartWidgetd
11 }
8
12
9 SOURCES += \
13 SOURCES += \
10 chartwidget.cpp
14 chartwidget.cpp
11 HEADERS += \
15 HEADERS += \
12 chartwidget.h
16 chartwidget.h
13 include(../src/chart.pri)
17 include(../src/chart.pri)
14
18
15 OBJECTS_DIR = tmp
19 OBJECTS_DIR = tmp
16 MOC_DIR = tmp
20 MOC_DIR = tmp
17
21
18 DEFINES += CHARTWIDGET_LIBRARY
22 DEFINES += CHARTWIDGET_LIBRARY
19
23
20 public_headers.path = $$[QT_INSTALL_HEADERS]/Charts
24 public_headers.path = $$[QT_INSTALL_HEADERS]/Charts
21 public_headers.files = chartwidget.h
25 public_headers.files = chartwidget.h
22
26
23 target.path=$$[QT_INSTALL_LIBS]
27 target.path=$$[QT_INSTALL_LIBS]
24
28
25 INSTALLS += target public_headers
29 INSTALLS += target public_headers
General Comments 0
You need to be logged in to leave comments. Login now