@@ -294,73 +294,88 @@ SET (QGIS_APP_MOC_HDRS
294
294
qgsnewspatialitelayerdialog.h
295
295
)
296
296
297
- IF (WITH_INTERNAL_QWTPOLAR )
298
- IF (QWT_VERSION_STR VERSION_LESS "6.0.0" )
299
- SET (QGIS_APP_SRCS
300
- ${QGIS_APP_SRCS}
301
- gps/qwtpolar-0.1/qwt_polar_canvas.cpp
302
- gps/qwtpolar-0.1/qwt_polar_curve.cpp
303
- gps/qwtpolar-0.1/qwt_polar_fitter.cpp
304
- gps/qwtpolar-0.1/qwt_polar_grid.cpp
305
- gps/qwtpolar-0.1/qwt_polar_itemdict.cpp
306
- gps/qwtpolar-0.1/qwt_polar_item.cpp
307
- gps/qwtpolar-0.1/qwt_polar_layout.cpp
308
- gps/qwtpolar-0.1/qwt_polar_magnifier.cpp
309
- gps/qwtpolar-0.1/qwt_polar_marker.cpp
310
- gps/qwtpolar-0.1/qwt_polar_panner.cpp
311
- gps/qwtpolar-0.1/qwt_polar_plot.cpp
312
- gps/qwtpolar-0.1/qwt_polar_point.cpp
313
- gps/qwtpolar-0.1/qwt_polar_spectrogram.cpp
314
- )
315
-
316
- SET (QGIS_APP_MOC_HDRS
317
- ${QGIS_APP_MOC_HDRS}
318
- gps/qwtpolar-0.1/qwt_polar_canvas.h
319
- gps/qwtpolar-0.1/qwt_polar_magnifier.h
320
- gps/qwtpolar-0.1/qwt_polar_panner.h
321
- gps/qwtpolar-0.1/qwt_polar_plot.h
322
- )
323
-
324
- SET (QWTPOLAR_INCLUDE_DIR gps/qwtpolar-0.1 )
325
- ELSE (QWT_VERSION_STR VERSION_LESS "6.0.0" )
326
- IF (NOT QWT_VERSION_STR VERSION_LESS "6.1.0" )
327
- MESSAGE (FATAL_ERROR "Internal QwtPolar does not support Qwt 6.1 and above" )
328
- ENDIF (NOT QWT_VERSION_STR VERSION_LESS "6.1.0" )
329
-
330
- SET (QGIS_APP_SRCS
331
- ${QGIS_APP_SRCS}
332
- gps/qwtpolar-1.0/qwt_polar_canvas.cpp
333
- gps/qwtpolar-1.0/qwt_polar_curve.cpp
334
- gps/qwtpolar-1.0/qwt_polar_fitter.cpp
335
- gps/qwtpolar-1.0/qwt_polar_grid.cpp
336
- gps/qwtpolar-1.0/qwt_polar_item.cpp
337
- gps/qwtpolar-1.0/qwt_polar_itemdict.cpp
338
- gps/qwtpolar-1.0/qwt_polar_layout.cpp
339
- gps/qwtpolar-1.0/qwt_polar_magnifier.cpp
340
- gps/qwtpolar-1.0/qwt_polar_marker.cpp
341
- gps/qwtpolar-1.0/qwt_polar_panner.cpp
342
- gps/qwtpolar-1.0/qwt_polar_picker.cpp
343
- gps/qwtpolar-1.0/qwt_polar_plot.cpp
344
- gps/qwtpolar-1.0/qwt_polar_renderer.cpp
345
- gps/qwtpolar-1.0/qwt_polar_spectrogram.cpp
346
- )
347
-
348
- SET (QGIS_APP_MOC_HDRS
349
- ${QGIS_APP_MOC_HDRS}
350
- gps/qwtpolar-1.0/qwt_polar_canvas.h
351
- gps/qwtpolar-1.0/qwt_polar_magnifier.h
352
- gps/qwtpolar-1.0/qwt_polar_panner.h
353
- gps/qwtpolar-1.0/qwt_polar_picker.h
354
- gps/qwtpolar-1.0/qwt_polar_plot.h
355
- gps/qwtpolar-1.0/qwt_polar_renderer.h
356
- )
357
-
358
- SET (QWTPOLAR_INCLUDE_DIR gps/qwtpolar-1.0 )
359
- ENDIF (QWT_VERSION_STR VERSION_LESS "6.0.0" )
360
-
361
- SET (QWTPOLAR_LIBRARY "" )
362
- ENDIF (WITH_INTERNAL_QWTPOLAR )
363
-
297
+ SET (WITH_QWTPOLAR TRUE CACHE BOOL "Determines whether QwtPolar should be built" )
298
+
299
+ IF (WITH_QWTPOLAR )
300
+ ADD_DEFINITIONS (-DWITH_QWTPOLAR )
301
+ # Try to find QwtPolar on the system
302
+ FIND_PACKAGE (QwtPolar )
303
+ # If not found on the system, offer the possibility to build QwtPolar
304
+ # internally
305
+ IF (NOT FOUND_QwtPolar )
306
+ SET (DEFAULT_WITH_INTERNAL_QWTPOLAR TRUE )
307
+ ELSE (NOT FOUND_QwtPolar )
308
+ SET (DEFAULT_WITH_INTERNAL_QWTPOLAR FALSE )
309
+ ENDIF (NOT FOUND_QwtPolar )
310
+ SET (WITH_INTERNAL_QWTPOLAR DEFAULT_WITH_INTERNAL_QWTPOLAR CACHE BOOL "Use internal build of QwtPolar" )
311
+
312
+ IF (WITH_INTERNAL_QWTPOLAR )
313
+ IF (QWT_VERSION_STR VERSION_LESS "6.0.0" )
314
+ SET (QGIS_APP_SRCS
315
+ ${QGIS_APP_SRCS}
316
+ gps/qwtpolar-0.1/qwt_polar_canvas.cpp
317
+ gps/qwtpolar-0.1/qwt_polar_curve.cpp
318
+ gps/qwtpolar-0.1/qwt_polar_fitter.cpp
319
+ gps/qwtpolar-0.1/qwt_polar_grid.cpp
320
+ gps/qwtpolar-0.1/qwt_polar_itemdict.cpp
321
+ gps/qwtpolar-0.1/qwt_polar_item.cpp
322
+ gps/qwtpolar-0.1/qwt_polar_layout.cpp
323
+ gps/qwtpolar-0.1/qwt_polar_magnifier.cpp
324
+ gps/qwtpolar-0.1/qwt_polar_marker.cpp
325
+ gps/qwtpolar-0.1/qwt_polar_panner.cpp
326
+ gps/qwtpolar-0.1/qwt_polar_plot.cpp
327
+ gps/qwtpolar-0.1/qwt_polar_point.cpp
328
+ gps/qwtpolar-0.1/qwt_polar_spectrogram.cpp
329
+ )
330
+
331
+ SET (QGIS_APP_MOC_HDRS
332
+ ${QGIS_APP_MOC_HDRS}
333
+ gps/qwtpolar-0.1/qwt_polar_canvas.h
334
+ gps/qwtpolar-0.1/qwt_polar_magnifier.h
335
+ gps/qwtpolar-0.1/qwt_polar_panner.h
336
+ gps/qwtpolar-0.1/qwt_polar_plot.h
337
+ )
338
+
339
+ SET (QWTPOLAR_INCLUDE_DIR gps/qwtpolar-0.1 )
340
+ ELSE (QWT_VERSION_STR VERSION_LESS "6.0.0" )
341
+ IF (NOT QWT_VERSION_STR VERSION_LESS "6.1.0" )
342
+ MESSAGE (FATAL_ERROR "Internal QwtPolar does not support Qwt 6.1 and above" )
343
+ ENDIF (NOT QWT_VERSION_STR VERSION_LESS "6.1.0" )
344
+
345
+ SET (QGIS_APP_SRCS
346
+ ${QGIS_APP_SRCS}
347
+ gps/qwtpolar-1.0/qwt_polar_canvas.cpp
348
+ gps/qwtpolar-1.0/qwt_polar_curve.cpp
349
+ gps/qwtpolar-1.0/qwt_polar_fitter.cpp
350
+ gps/qwtpolar-1.0/qwt_polar_grid.cpp
351
+ gps/qwtpolar-1.0/qwt_polar_item.cpp
352
+ gps/qwtpolar-1.0/qwt_polar_itemdict.cpp
353
+ gps/qwtpolar-1.0/qwt_polar_layout.cpp
354
+ gps/qwtpolar-1.0/qwt_polar_magnifier.cpp
355
+ gps/qwtpolar-1.0/qwt_polar_marker.cpp
356
+ gps/qwtpolar-1.0/qwt_polar_panner.cpp
357
+ gps/qwtpolar-1.0/qwt_polar_picker.cpp
358
+ gps/qwtpolar-1.0/qwt_polar_plot.cpp
359
+ gps/qwtpolar-1.0/qwt_polar_renderer.cpp
360
+ gps/qwtpolar-1.0/qwt_polar_spectrogram.cpp
361
+ )
362
+
363
+ SET (QGIS_APP_MOC_HDRS
364
+ ${QGIS_APP_MOC_HDRS}
365
+ gps/qwtpolar-1.0/qwt_polar_canvas.h
366
+ gps/qwtpolar-1.0/qwt_polar_magnifier.h
367
+ gps/qwtpolar-1.0/qwt_polar_panner.h
368
+ gps/qwtpolar-1.0/qwt_polar_picker.h
369
+ gps/qwtpolar-1.0/qwt_polar_plot.h
370
+ gps/qwtpolar-1.0/qwt_polar_renderer.h
371
+ )
372
+
373
+ SET (QWTPOLAR_INCLUDE_DIR gps/qwtpolar-1.0 )
374
+ ENDIF (QWT_VERSION_STR VERSION_LESS "6.0.0" )
375
+
376
+ SET (QWTPOLAR_LIBRARY "" )
377
+ ENDIF (WITH_INTERNAL_QWTPOLAR )
378
+ ENDIF (WITH_QWTPOLAR )
364
379
365
380
IF (POSTGRES_FOUND )
366
381
IF (HAVE_PGCONFIG )
0 commit comments