-
Notifications
You must be signed in to change notification settings - Fork 1
/
gdal.pri
48 lines (36 loc) · 1.27 KB
/
gdal.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
45
46
#-----------------------------------------------------------------------------------------
# GDAL library
#
# How to compile on windows:
#
# win32-msvc (Microsoft Visual C)
# - install GDAL from OSGeo4W https://trac.osgeo.org/osgeo4w/
# - add GDAL_PATH to the system variables - example: GDAL_PATH = C:\OSGeo4W
# - add GDAL_DATA to the system variables - example: GDAL_DATA = C:\OSGeo4W\share\epsg_csv
# - add PROJ_LIB to the system variables - example: PROJ_LIB = C:\OSGeo4W\share\proj
# - add OSGeo4W\bin to the system path
#
#------------------------------------------------------------------------------------------
unix:!macx {
LIBS += -L/usr/lib -lgdal
INCLUDEPATH += /usr/include/gdal
DEPENDPATH += /usr/include/gdal
}
win32-msvc {
LIBS += -L$$(GDAL_PATH)/lib/ -lgdal_i
INCLUDEPATH += $$(GDAL_PATH)/include
DEPENDPATH += $$(GDAL_PATH)/include
}
win32-g++ {
LIBS += -L$$(GDAL_PATH)/lib/ -lgdal
INCLUDEPATH += $$(GDAL_PATH)/include
DEPENDPATH += $$(GDAL_PATH)/include
PRE_TARGETDEPS += $$(MSYS_PATH)/lib/libgdal.a
}
mac {
LIBS += -framework IOKit
LIBS += -framework CoreFoundation
LIBS += -framework GDAL
QMAKE_LFLAGS += -F/Library/Frameworks/
INCLUDEPATH += /Library/Frameworks/GDAL.framework/Headers
}