1 # -------------------------------------------------
2 # Project created by QtCreator 2010-03-26T10:37:44
3 # -------------------------------------------------
8 DEFINES += LIBQGPSMM_LIBRARY
11 INCLUDEPATH += $$PWD \
30 HEADERS += libQgpsmm_global.h \
39 VERSION = $$system($${MAKE} -s -C .. print_libgps_VERSION)
45 # Prefix: base instalation directory
49 isEmpty( EXEC_PREFIX ) {
50 EXEC_PREFIX = $${PREFIX}
55 isEmpty( INCLUDEDIR ) {
59 # TARGET_LIBDIR and TARGET_INCLUDEDIR allow to override
60 # the library and header install paths.
61 # This is mainly a workaround as QT was not able to use the proper
62 # path on some platforms. Both TARGET_ variables will be
63 # set from the autotools generated Makefile.
64 # There should be a better way to handle this, though.
65 isEmpty( TARGET_LIBDIR ) {
66 TARGET_LIBDIR = $${EXEC_PREFIX}$${LIBDIR}
68 isEmpty( TARGET_INCLUDEDIR ) {
69 TARGET_INCLUDEDIR = $${PREFIX}$${INCLUDEDIR}
71 target.path = $${TARGET_LIBDIR}
74 header.path = $${TARGET_INCLUDEDIR}
75 header.files = ../libgpsmm.h ../gps.h
78 QMAKE_CFLAGS += -D_GNU_SOURCE
84 include( mingw/version.pri )
89 INCLUDEPATH = $$PWD/mingw $${INCLUDEPATH}
91 gpsdhcreate.target = gpsd.h
92 gpsdhcreate.commands = "copy /Y /B ..\gpsd.h-head + mingw\gpsd_config.h + ..\gpsd.h-tail gpsd.h"
93 gpsdhcreate.depends = FORCE
95 PRE_TARGETDEPS += gpsd.h
96 QMAKE_EXTRA_TARGETS += gpsdhcreate