@@ -135,20 +135,7 @@ SET(QGIS_APP_SRCS
135135
136136 gps/qgsgpsinformationwidget.cpp
137137 gps/qgsgpsmarker.cpp
138- gps/qwtpolar/qwt_polar_canvas.cpp
139- gps/qwtpolar/qwt_polar_curve.cpp
140- gps/qwtpolar/qwt_polar_fitter.cpp
141- gps/qwtpolar/qwt_polar_grid.cpp
142- gps/qwtpolar/qwt_polar_itemdict.cpp
143- gps/qwtpolar/qwt_polar_item.cpp
144- gps/qwtpolar/qwt_polar_layout.cpp
145- gps/qwtpolar/qwt_polar_magnifier.cpp
146- gps/qwtpolar/qwt_polar_marker.cpp
147- gps/qwtpolar/qwt_polar_panner.cpp
148- gps/qwtpolar/qwt_polar_plot.cpp
149- gps/qwtpolar/qwt_polar_point.cpp
150- gps/qwtpolar/qwt_polar_spectrogram.cpp
151- )
138+ )
152139
153140
154141SET (QGIS_APP_MOC_HDRS
@@ -256,12 +243,39 @@ SET (QGIS_APP_MOC_HDRS
256243 attributetable/qgsattributetabledelegate.h
257244
258245 gps/qgsgpsinformationwidget.h
259- gps/qwtpolar/qwt_polar_canvas.h
260- gps/qwtpolar/qwt_polar_magnifier.h
261- gps/qwtpolar/qwt_polar_panner.h
262- gps/qwtpolar/qwt_polar_plot.h
263246 )
264247
248+ IF (WITH_INTERNAL_QWTPOLAR)
249+ SET (QGIS_APP_SRCS
250+ ${QGIS_APP_SRCS}
251+ gps/qwtpolar/qwt_polar_canvas.cpp
252+ gps/qwtpolar/qwt_polar_curve.cpp
253+ gps/qwtpolar/qwt_polar_fitter.cpp
254+ gps/qwtpolar/qwt_polar_grid.cpp
255+ gps/qwtpolar/qwt_polar_itemdict.cpp
256+ gps/qwtpolar/qwt_polar_item.cpp
257+ gps/qwtpolar/qwt_polar_layout.cpp
258+ gps/qwtpolar/qwt_polar_magnifier.cpp
259+ gps/qwtpolar/qwt_polar_marker.cpp
260+ gps/qwtpolar/qwt_polar_panner.cpp
261+ gps/qwtpolar/qwt_polar_plot.cpp
262+ gps/qwtpolar/qwt_polar_point.cpp
263+ gps/qwtpolar/qwt_polar_spectrogram.cpp
264+ )
265+
266+ SET (QGIS_APP_MOC_HDRS
267+ ${QGIS_APP_MOC_HDRS}
268+ gps/qwtpolar/qwt_polar_canvas.h
269+ gps/qwtpolar/qwt_polar_magnifier.h
270+ gps/qwtpolar/qwt_polar_panner.h
271+ gps/qwtpolar/qwt_polar_plot.h
272+ )
273+
274+ SET (QWTPOLAR_INCLUDE_DIR gps/qwtpolar)
275+ SET (QWTPOLAR_LIBRARY "" )
276+ ENDIF (WITH_INTERNAL_QWTPOLAR)
277+
278+
265279IF (POSTGRES_FOUND)
266280 IF (HAVE_PGCONFIG)
267281 ADD_DEFINITIONS (-DHAVE_PGCONFIG=1)
@@ -339,7 +353,6 @@ INCLUDE_DIRECTORIES(
339353 ../plugins
340354 ../python
341355 gps
342- gps/qwtpolar
343356 )
344357
345358IF (HAVE_SPATIALITE)
@@ -357,6 +370,7 @@ INCLUDE_DIRECTORIES(
357370 ${PROJ_INCLUDE_DIR}
358371 ${GEOS_INCLUDE_DIR}
359372 ${GDAL_INCLUDE_DIR}
373+ ${QWTPOLAR_INCLUDE_DIR}
360374)
361375
362376IF (POSTGRES_FOUND)
@@ -382,6 +396,7 @@ TARGET_LINK_LIBRARIES(${QGIS_APP_NAME}
382396 ${QT_QTUITOOLS_LIBRARY}
383397 #should only be needed for win
384398 ${QT_QTMAIN_LIBRARY}
399+ ${QWTPOLAR_LIBRARY}
385400 qgis_core
386401 qgis_gui
387402 qgis_analysis
0 commit comments