-
Notifications
You must be signed in to change notification settings - Fork 44
/
kdchart.pri
44 lines (38 loc) · 1.44 KB
/
kdchart.pri
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# This file is part of the KD Reports library.
#
# SPDX-FileCopyrightText: 2014 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
#
# SPDX-License-Identifier: MIT
#
# copy from environment:
isEmpty( KDCHARTDIR ):KDCHARTDIR=$$(KDCHARTDIR)
!isEmpty( KDCHARTDIR ) {
unix:isEmpty(QMAKE_EXTENSION_SHLIB) {
static:QMAKE_EXTENSION_SHLIB=a
else {
macx:QMAKE_EXTENSION_SHLIB=dylib
else:QMAKE_EXTENSION_SHLIB=so
}
}
unix:!exists( $$KDCHARTDIR/lib/libkdchart.$$QMAKE_EXTENSION_SHLIB ):error( "Cannot find libkdchart.$$QMAKE_EXTENSION_SHLIB in $$KDCHARTDIR/lib" )
unix:!exists( $$KDCHARTDIR/include/KDChart/KDChartGlobal ):error( "Cannot find KDChartGlobal in $$KDCHARTDIR/include/KDChart" )
KDCHART_LIB_TYPE_SUFFIX = ""
win32 {
CONFIG(debug, debug|release) {
KDCHART_LIB_TYPE_SUFFIX="d"
}
}
LIBS += -L$$KDCHARTDIR/lib
win32 {
LIBS += -lkdchart$$KDCHART_LIB_TYPE_SUFFIX
} else {
!isEmpty(QMAKE_LFLAGS_RPATH):LIBS += $$QMAKE_LFLAGS_RPATH$$KDCHARTDIR/lib
LIBS += -lkdchart
}
INCLUDEPATH += $$KDCHARTDIR/include/KDChart
DEPENDPATH += $$KDCHARTDIR/include/KDChart
CONFIG += have_kdchart
DEFINES += HAVE_KDCHART
} else:equals( WARN_IF_NOT_FOUND, "1" ) {
message( "WARNING: kdchart not found. Please set KDCHARTDIR either as an environment variable or on the qmake command line if you want kdchart support")
}