Lines 384-437
Link Here
|
384 |
find_package(${QT_VERSION_BASE} COMPONENTS UiTools REQUIRED) |
384 |
find_package(${QT_VERSION_BASE} COMPONENTS UiTools REQUIRED) |
385 |
|
385 |
|
386 |
set (WITH_QWTPOLAR FALSE CACHE BOOL "Determines whether QwtPolar is available or whether functionality requiring QwtPolar should be disabled.") |
386 |
set (WITH_QWTPOLAR FALSE CACHE BOOL "Determines whether QwtPolar is available or whether functionality requiring QwtPolar should be disabled.") |
387 |
# Once we bump the minimum QWT VERSION to 6.2 or newer, we should get rid of WITH_QWTPOLAR |
387 |
# # Once we bump the minimum QWT VERSION to 6.2 or newer, we should get rid of WITH_QWTPOLAR |
388 |
if(QWT_VERSION_STR VERSION_GREATER_EQUAL 6.2 OR WITH_QWTPOLAR) |
388 |
# if(QWT_VERSION_STR VERSION_GREATER_EQUAL 6.2 OR WITH_QWTPOLAR) |
389 |
add_definitions(-DWITH_QWTPOLAR) |
389 |
# add_definitions(-DWITH_QWTPOLAR) |
390 |
|
390 |
|
391 |
if(QWT_VERSION_STR VERSION_LESS 6.2) |
391 |
# if(QWT_VERSION_STR VERSION_LESS 6.2) |
392 |
find_package(QwtPolar REQUIRED) |
392 |
# find_package(QwtPolar REQUIRED) |
393 |
else() |
393 |
# else() |
394 |
set(FOUND_QwtPolar TRUE) |
394 |
# set(FOUND_QwtPolar TRUE) |
395 |
set(QWTPOLAR_LIBRARY ${QWT_LIBRARY}) |
395 |
# set(QWTPOLAR_LIBRARY ${QWT_LIBRARY}) |
396 |
set(QWTPOLAR_INCLUDE_DIR ${QWT_INCLUDE_DIR}) |
396 |
# set(QWTPOLAR_INCLUDE_DIR ${QWT_INCLUDE_DIR}) |
397 |
add_definitions(-DQWT_POLAR_VERSION=0x060200) |
397 |
# add_definitions(-DQWT_POLAR_VERSION=0x060200) |
398 |
endif() |
398 |
# endif() |
399 |
# If not found on the system, offer the possibility to build QwtPolar |
399 |
# # If not found on the system, offer the possibility to build QwtPolar |
400 |
# internally |
400 |
# # internally |
401 |
if(NOT FOUND_QwtPolar) |
401 |
# if(NOT FOUND_QwtPolar) |
402 |
set(DEFAULT_WITH_INTERNAL_QWTPOLAR TRUE) |
402 |
# set(DEFAULT_WITH_INTERNAL_QWTPOLAR TRUE) |
403 |
else() |
403 |
# else() |
404 |
set(DEFAULT_WITH_INTERNAL_QWTPOLAR FALSE) |
404 |
# set(DEFAULT_WITH_INTERNAL_QWTPOLAR FALSE) |
405 |
endif() |
405 |
# endif() |
406 |
set (WITH_INTERNAL_QWTPOLAR ${DEFAULT_WITH_INTERNAL_QWTPOLAR} CACHE BOOL "Use internal build of QwtPolar") |
406 |
# set (WITH_INTERNAL_QWTPOLAR ${DEFAULT_WITH_INTERNAL_QWTPOLAR} CACHE BOOL "Use internal build of QwtPolar") |
407 |
|
407 |
|
408 |
if(WITH_INTERNAL_QWTPOLAR) |
408 |
# if(WITH_INTERNAL_QWTPOLAR) |
409 |
set(QGIS_APP_SRCS |
409 |
# set(QGIS_APP_SRCS |
410 |
${QGIS_APP_SRCS} |
410 |
# ${QGIS_APP_SRCS} |
411 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_canvas.cpp |
411 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_canvas.cpp |
412 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_curve.cpp |
412 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_curve.cpp |
413 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_fitter.cpp |
413 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_fitter.cpp |
414 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_grid.cpp |
414 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_grid.cpp |
415 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_item.cpp |
415 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_item.cpp |
416 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_itemdict.cpp |
416 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_itemdict.cpp |
417 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_layout.cpp |
417 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_layout.cpp |
418 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_magnifier.cpp |
418 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_magnifier.cpp |
419 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_marker.cpp |
419 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_marker.cpp |
420 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_panner.cpp |
420 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_panner.cpp |
421 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_picker.cpp |
421 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_picker.cpp |
422 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_plot.cpp |
422 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_plot.cpp |
423 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_renderer.cpp |
423 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_renderer.cpp |
424 |
${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_spectrogram.cpp |
424 |
# ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1/qwt_polar_spectrogram.cpp |
425 |
) |
425 |
# ) |
426 |
|
426 |
|
427 |
set(QWTPOLAR_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1) |
427 |
# set(QWTPOLAR_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/external/qwtpolar-1.1.1) |
428 |
|
428 |
|
429 |
set(QWTPOLAR_LIBRARY "") |
429 |
# set(QWTPOLAR_LIBRARY "") |
430 |
endif() |
430 |
# endif() |
431 |
else() |
431 |
# else() |
432 |
set(QWTPOLAR_LIBRARY "") |
432 |
set(QWTPOLAR_LIBRARY "") |
433 |
set(QWTPOLAR_INCLUDE_DIR "") |
433 |
set(QWTPOLAR_INCLUDE_DIR "") |
434 |
endif() |
434 |
# endif() |
435 |
|
435 |
|
436 |
if (POSTGRES_FOUND) |
436 |
if (POSTGRES_FOUND) |
437 |
if(HAVE_PGCONFIG) |
437 |
if(HAVE_PGCONFIG) |
Lines 562-568
Link Here
|
562 |
|
562 |
|
563 |
target_include_directories(qgis_app SYSTEM PUBLIC |
563 |
target_include_directories(qgis_app SYSTEM PUBLIC |
564 |
${QT_QTUITOOLS_INCLUDE_DIR} |
564 |
${QT_QTUITOOLS_INCLUDE_DIR} |
565 |
${QWTPOLAR_INCLUDE_DIR} |
565 |
# ${QWTPOLAR_INCLUDE_DIR} |
566 |
${CMAKE_SOURCE_DIR}/external/qt-unix-signals |
566 |
${CMAKE_SOURCE_DIR}/external/qt-unix-signals |
567 |
) |
567 |
) |
568 |
|
568 |
|
Lines 570-576
Link Here
|
570 |
|
570 |
|
571 |
target_link_libraries(qgis_app |
571 |
target_link_libraries(qgis_app |
572 |
${QWT_LIBRARY} |
572 |
${QWT_LIBRARY} |
573 |
${QWTPOLAR_LIBRARY} |
573 |
# ${QWTPOLAR_LIBRARY} |
574 |
${QT_VERSION_BASE}::Sql |
574 |
${QT_VERSION_BASE}::Sql |
575 |
${QT_VERSION_BASE}::UiTools |
575 |
${QT_VERSION_BASE}::UiTools |
576 |
${OPTIONAL_QTWEBKIT} |
576 |
${OPTIONAL_QTWEBKIT} |