Skip to content

Commit 48fb999

Browse files
Fix static build of centralwidget example
1 parent 5443e5f commit 48fb999

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

examples/centralwidget/centralwidget.pro

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
ADS_OUT_ROOT = $${OUT_PWD}/../..
22

3-
QT += core gui
4-
5-
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
3+
QT += core gui widgets
64

75
TARGET = CentralWidgetExample
86
DESTDIR = $${ADS_OUT_ROOT}/lib
97
TEMPLATE = app
108
CONFIG += c++14
119
CONFIG += debug_and_release
10+
adsBuildStatic {
11+
DEFINES += ADS_STATIC
12+
}
1213

1314
# The following define makes your compiler emit warnings if you use
1415
# any Qt feature that has been marked deprecated (the exact warnings
1516
# depend on your compiler). Please consult the documentation of the
1617
# deprecated API in order to know how to port your code away from it.
1718
DEFINES += QT_DEPRECATED_WARNINGS
1819

19-
# You can also make your code fail to compile if it uses deprecated APIs.
20-
# In order to do so, uncomment the following line.
21-
# You can also select to disable deprecated APIs only up to a certain version of Qt.
22-
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
23-
2420
SOURCES += \
2521
main.cpp \
2622
mainwindow.cpp

0 commit comments

Comments
 (0)