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 47 48 49 50 51 52 53 54 55 56
|
TERRALIBPATH = ../..
include ($$TERRALIBPATH/build/qt/config.pri)
TEMPLATE = app
# Define your mysql client path
unix:MYSQL_CLIENT = $$TERRALIBPATH/dependencies/linux/MySQL/lib
win32 {
win32-g++:MYSQL_CLIENT=$$TERRALIBPATH/dependencies/win32/MySQL/lib/mingw
else:MYSQL_CLIENT=$$TERRALIBPATH/dependencies/win32/MySQL/lib/ms
}
INCLUDEPATH = \
. \
.. \
$$TERRALIBPATH/src/terralib/kernel \
$$TERRALIBPATH/src/terralib/functions \
$$TERRALIBPATH/src/terralib/stat \
$$TERRALIBPATH/src/terralib/utils \
$$TERRALIBPATH/src/terralib/drivers/shapelib \
$$TERRALIBPATH/src/terralib/drivers/MySQL \
$$TERRALIBPATH/src/terralib/drivers/MySQL/include \
$$TERRALIBPATH/src/terralib/drivers/shapelib \
$$TERRALIBPATH/src/shapelib \
$$TERRALIBPATH/src/zlib \
$$TERRALIBPATH/src/tiff \
$$INCLUDEPATH
debug:CONFIGOUT = Debug
release:CONFIGOUT = Release
unix {
LIBS += \
-L/usr/local/lib \
-L/usr/lib \
-L$$MYSQL_CLIENT \
-ljpeg \
-lshapelib \
-lz \
-lterralibtiff \
-lcrypt \
-lterralib \
-lstat
DESTDIR = linux-g++
}
win32 {
win32-g++:DESTDIR = win32-g++
}
LIBS += -ljpeg -lshapelib -lterralibtiff -lterralib -lstat -lte_mysql
unix:LIBS += -lz -lcrypt
DESTDIR = $$TERRALIBPATH/$$CONFIGOUT/examples/$$DESTDIR/$$TARGET
|