-
Notifications
You must be signed in to change notification settings - Fork 45
/
kdreports.pri
39 lines (33 loc) · 1.53 KB
/
kdreports.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
# This file is part of the KD Reports library.
#
# SPDX-FileCopyrightText: 2014 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
#
# SPDX-License-Identifier: MIT
#
# Not used by KDReports itself. This is for use in other projects.
# Include this file directly, or copy the file into your project.
# copy from environment:
isEmpty( KDREPORTSDIR ):KDREPORTSDIR="$$(KDREPORTSDIR)"
!isEmpty( KDREPORTSDIR ) {
unix:isEmpty(QMAKE_EXTENSION_SHLIB):QMAKE_EXTENSION_SHLIB=so
unix:!exists( $$KDREPORTSDIR/lib/libkdreports.$$QMAKE_EXTENSION_SHLIB ):error( "Cannot find libkdreports.$$QMAKE_EXTENSION_SHLIB in $KDREPORTSDIR/lib" )
#win32:!exists( $$KDREPORTSDIR/lib/kdreports.lib ):error( "Cannot find kdreports.lib in $KDREPORTSDIR/lib" )
unix:!exists( $$KDREPORTSDIR/include/KDReports ):error( "Cannot find KDReports in $KDREPORTSDIR/include/KDReports" )
LIBS += -L$$KDREPORTSDIR/lib
win32*:!static {
CONFIG(debug, debug|release) {
LIBS += -lkdreports2d
} else {
LIBS += -lkdreports2
}
} else {
!isEmpty(QMAKE_RPATH):LIBS += $$QMAKE_RPATH$$KDREPORTSDIR/lib
LIBS += -lkdreports
}
INCLUDEPATH += $$KDREPORTSDIR/include $$KDREPORTSDIR/include/KDReports
DEPENDPATH += $$KDREPORTSDIR/include
CONFIG += have_kdreports
DEFINES += HAVE_KDREPORTS
} else:equals( builddir, $$top_builddir ) {
message( "WARNING: kdreports not found. Please set KDREPORTSDIR either as an environment variable or on the qmake command line if you want kdreports support")
}