Skip to content

Commit

Permalink
Switch QT4_* macros to QT5
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 20, 2016
1 parent fdaa632 commit 83ad380
Show file tree
Hide file tree
Showing 57 changed files with 119 additions and 124 deletions.
2 changes: 1 addition & 1 deletion src/analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ IF (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
)
ENDIF (CMAKE_CXX_COMPILER_ID MATCHES "Clang")

QT4_WRAP_CPP(QGIS_ANALYSIS_MOC_SRCS ${QGIS_ANALYSIS_MOC_HDRS})
QT5_WRAP_CPP(QGIS_ANALYSIS_MOC_SRCS ${QGIS_ANALYSIS_MOC_HDRS})

# install headers

Expand Down
2 changes: 1 addition & 1 deletion src/analysis/network/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SET(QGIS_NETWORK_ANALYSIS_MOC_HDRS
qgslinevectorlayerdirector.h
)

QT4_WRAP_CPP(QGIS_NETWORK_ANALYSIS_MOC_SRCS ${QGIS_NETWORK_ANALYSIS_MOC_HDRS})
QT5_WRAP_CPP(QGIS_NETWORK_ANALYSIS_MOC_SRCS ${QGIS_NETWORK_ANALYSIS_MOC_HDRS})

# install headers

Expand Down
6 changes: 3 additions & 3 deletions src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -465,13 +465,13 @@ ENDIF (POSTGRES_FOUND)

SET(IMAGE_RCCS ../../images/images.qrc)

QT4_ADD_RESOURCES(IMAGE_RCC_SRCS ${IMAGE_RCCS})
QT5_ADD_RESOURCES(IMAGE_RCC_SRCS ${IMAGE_RCCS})

# add test resources, e.g. standard test font
SET(TEST_RCCS ../../tests/testdata/testdata.qrc)
QT4_ADD_RESOURCES(TEST_RCC_SRCS ${TEST_RCCS})
QT5_ADD_RESOURCES(TEST_RCC_SRCS ${TEST_RCCS})

QT4_WRAP_CPP(QGIS_APP_MOC_SRCS ${QGIS_APP_MOC_HDRS})
QT5_WRAP_CPP(QGIS_APP_MOC_SRCS ${QGIS_APP_MOC_HDRS})

SET (QGIS_APPMAIN_SRCS main.cpp)

Expand Down
4 changes: 2 additions & 2 deletions src/auth/basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_BINARY_DIR}
)

QT4_WRAP_UI (AUTH_BASIC_UIS_H ${AUTH_BASIC_UIS})
QT5_WRAP_UI (AUTH_BASIC_UIS_H ${AUTH_BASIC_UIS})

QT4_WRAP_CPP(AUTH_BASIC_MOC_SRCS ${AUTH_BASIC_MOC_HDRS})
QT5_WRAP_CPP(AUTH_BASIC_MOC_SRCS ${AUTH_BASIC_MOC_HDRS})

ADD_LIBRARY (basicauthmethod MODULE ${AUTH_BASIC_SRCS} ${AUTH_BASIC_HDRS} ${AUTH_BASIC_MOC_SRCS} ${AUTH_BASIC_UIS_H})

Expand Down
4 changes: 2 additions & 2 deletions src/auth/identcert/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_BINARY_DIR}
)

QT4_WRAP_UI (AUTH_IDENTCERT_UIS_H ${AUTH_IDENTCERT_UIS})
QT5_WRAP_UI (AUTH_IDENTCERT_UIS_H ${AUTH_IDENTCERT_UIS})

QT4_WRAP_CPP(AUTH_IDENTCERT_MOC_SRCS ${AUTH_IDENTCERT_MOC_HDRS})
QT5_WRAP_CPP(AUTH_IDENTCERT_MOC_SRCS ${AUTH_IDENTCERT_MOC_HDRS})

ADD_LIBRARY (identcertauthmethod MODULE ${AUTH_IDENTCERT_SRCS} ${AUTH_IDENTCERT_HDRS} ${AUTH_IDENTCERT_MOC_SRCS} ${AUTH_IDENTCERT_UIS_H})

Expand Down
4 changes: 2 additions & 2 deletions src/auth/pkipaths/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_BINARY_DIR}
)

QT4_WRAP_UI (AUTH_PKIPATHS_UIS_H ${AUTH_PKIPATHS_UIS})
QT5_WRAP_UI (AUTH_PKIPATHS_UIS_H ${AUTH_PKIPATHS_UIS})

QT4_WRAP_CPP(AUTH_PKIPATHS_MOC_SRCS ${AUTH_PKIPATHS_MOC_HDRS})
QT5_WRAP_CPP(AUTH_PKIPATHS_MOC_SRCS ${AUTH_PKIPATHS_MOC_HDRS})

ADD_LIBRARY (pkipathsauthmethod MODULE ${AUTH_PKIPATHS_SRCS} ${AUTH_PKIPATHS_HDRS} ${AUTH_PKIPATHS_MOC_SRCS} ${AUTH_PKIPATHS_UIS_H})

Expand Down
4 changes: 2 additions & 2 deletions src/auth/pkipkcs12/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ INCLUDE_DIRECTORIES (
${CMAKE_CURRENT_BINARY_DIR}
)

QT4_WRAP_UI (AUTH_PKCS12_UIS_H ${AUTH_PKCS12_UIS})
QT5_WRAP_UI (AUTH_PKCS12_UIS_H ${AUTH_PKCS12_UIS})

QT4_WRAP_CPP(AUTH_PKCS12_MOC_SRCS ${AUTH_PKCS12_MOC_HDRS})
QT5_WRAP_CPP(AUTH_PKCS12_MOC_SRCS ${AUTH_PKCS12_MOC_HDRS})

ADD_LIBRARY (pkcs12authmethod MODULE ${AUTH_PKCS12_SRCS} ${AUTH_PKCS12_HDRS} ${AUTH_PKCS12_MOC_SRCS} ${AUTH_PKCS12_UIS_H})

Expand Down
8 changes: 4 additions & 4 deletions src/browser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ SET(IMAGE_RCCS ../../images/images.qrc)
########################################################
# Build

QT4_WRAP_UI (BROWSER_UIS_H ${BROWSER_UIS})
QT5_WRAP_UI (BROWSER_UIS_H ${BROWSER_UIS})

QT4_WRAP_CPP (BROWSER_MOC_SRCS ${BROWSER_MOC_HDRS})
QT5_WRAP_CPP (BROWSER_MOC_SRCS ${BROWSER_MOC_HDRS})

QT4_ADD_RESOURCES(IMAGE_RCC_SRCS ${IMAGE_RCCS})
#QT4_ADD_RESOURCES(BROWSER_RCC_SRCS ${BROWSER_RCCS})
QT5_ADD_RESOURCES(IMAGE_RCC_SRCS ${IMAGE_RCCS})
#QT5_ADD_RESOURCES(BROWSER_RCC_SRCS ${BROWSER_RCCS})

ADD_EXECUTABLE (qbrowser MACOSX_BUNDLE WIN32 ${BROWSER_SRCS} ${BROWSER_MOC_SRCS} ${BROWSER_UIS_H} ${IMAGE_RCC_SRCS})

Expand Down
9 changes: 2 additions & 7 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -388,17 +388,12 @@ IF(ENABLE_MODELTEST)
../../tests/qt_modeltest/modeltest.h
../../tests/qt_modeltest/dynamictreemodel.h
)
QT4_WRAP_CPP(MODELTEST_MOC_SRCS ${MODELTEST_MOC_HDRS})
QT5_WRAP_CPP(MODELTEST_MOC_SRCS ${MODELTEST_MOC_HDRS})
SET(QGIS_CORE_SRCS ${QGIS_CORE_SRCS}
${MODELTEST_SRCS} ${MODELTEST_MOC_SRCS}
)
ENDIF(ENABLE_MODELTEST)

# TODO - update for Qt5
#SET(QGIS_CORE_SRCS ${QGIS_CORE_SRCS}
# qgshttptransaction.cpp
#)

IF (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# spatialindex headers produce warnings
SET_SOURCE_FILES_PROPERTIES(qgsspatialindex.cpp PROPERTIES COMPILE_FLAGS -Wno-overloaded-virtual)
Expand Down Expand Up @@ -577,7 +572,7 @@ IF (QT_MOBILITY_LOCATION_FOUND OR Qt5Positioning_FOUND)
)
ENDIF (QT_MOBILITY_LOCATION_FOUND OR Qt5Positioning_FOUND)

QT4_WRAP_CPP(QGIS_CORE_MOC_SRCS ${QGIS_CORE_MOC_HDRS})
QT5_WRAP_CPP(QGIS_CORE_MOC_SRCS ${QGIS_CORE_MOC_HDRS})

IF(MSVC)
SET_SOURCE_FILES_PROPERTIES(${QGIS_CORE_MOC_SRCS} PROPERTIES COMPILE_FLAGS "/wd4512 /wd4996" )
Expand Down
4 changes: 2 additions & 2 deletions src/customwidgets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ INCLUDE_DIRECTORIES(SYSTEM
${QT_QTDESIGNER_INCLUDE_DIR} # For Qt4
)

QT4_WRAP_CPP(QGIS_CUSTOMWIDGETS_MOC_SRCS ${QGIS_CUSTOMWIDGETS_MOC_HDRS})
QT5_WRAP_CPP(QGIS_CUSTOMWIDGETS_MOC_SRCS ${QGIS_CUSTOMWIDGETS_MOC_HDRS})

#############################################################
# qgis_customwidgets library

SET(IMAGE_RCCS ../../images/images.qrc)
QT4_ADD_RESOURCES(IMAGE_RCC_SRCS ${IMAGE_RCCS})
QT5_ADD_RESOURCES(IMAGE_RCC_SRCS ${IMAGE_RCCS})

ADD_LIBRARY(qgis_customwidgets SHARED ${QGIS_CUSTOMWIDGETS_SRCS} ${QGIS_CUSTOMWIDGETS_MOC_SRCS} ${QGIS_CUSTOMWIDGETS_HDRS} ${IMAGE_RCC_SRCS})

Expand Down
2 changes: 1 addition & 1 deletion src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ IF (WITH_QTWEBKIT)
)
ENDIF (WITH_QTWEBKIT)

QT4_WRAP_CPP(QGIS_GUI_MOC_SRCS ${QGIS_GUI_MOC_HDRS})
QT5_WRAP_CPP(QGIS_GUI_MOC_SRCS ${QGIS_GUI_MOC_HDRS})

IF(MSVC)
SET_SOURCE_FILES_PROPERTIES(${QGIS_GUI_MOC_SRCS} PROPERTIES COMPILE_FLAGS "/wd4512 /wd4996" )
Expand Down
6 changes: 3 additions & 3 deletions src/helpviewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ ENDIF (WIN32)
########################################################
# Build

QT4_WRAP_UI (HELP_UIS_H ${HELP_UIS})
QT5_WRAP_UI (HELP_UIS_H ${HELP_UIS})

QT4_WRAP_CPP (HELP_MOC_SRCS ${HELP_MOC_HDRS})
QT5_WRAP_CPP (HELP_MOC_SRCS ${HELP_MOC_HDRS})

QT4_ADD_RESOURCES(HELP_RCC_SRCS ${HELP_RCCS})
QT5_ADD_RESOURCES(HELP_RCC_SRCS ${HELP_RCCS})

ADD_EXECUTABLE (qgis_help MACOSX_BUNDLE WIN32 ${HELP_SRCS} ${HELP_MOC_SRCS} ${HELP_UIS_H} ${HELP_RCC_SRCS})

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/compass/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ SET (COMPASS_RCCS compass.qrc)
########################################################
# Build

QT4_WRAP_UI (COMPASS_UIS_H ${COMPASS_UIS})
QT5_WRAP_UI (COMPASS_UIS_H ${COMPASS_UIS})

QT4_WRAP_CPP (COMPASS_MOC_SRCS ${COMPASS_MOC_HDRS})
QT5_WRAP_CPP (COMPASS_MOC_SRCS ${COMPASS_MOC_HDRS})

QT4_ADD_RESOURCES(COMPASS_RCC_SRCS ${COMPASS_RCCS})
QT5_ADD_RESOURCES(COMPASS_RCC_SRCS ${COMPASS_RCCS})

ADD_LIBRARY (compassplugin MODULE ${COMPASS_SRCS} ${COMPASS_MOC_SRCS} ${COMPASS_RCC_SRCS} ${COMPASS_UIS_H})

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/coordinate_capture/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ SET (coordinatecapture_RCCS coordinatecapture.qrc)
########################################################
# Build

QT4_WRAP_UI (coordinatecapture_UIS_H ${coordinatecapture_UIS})
QT5_WRAP_UI (coordinatecapture_UIS_H ${coordinatecapture_UIS})

QT4_WRAP_CPP (coordinatecapture_MOC_SRCS ${coordinatecapture_MOC_HDRS})
QT5_WRAP_CPP (coordinatecapture_MOC_SRCS ${coordinatecapture_MOC_HDRS})

QT4_ADD_RESOURCES(coordinatecapture_RCC_SRCS ${coordinatecapture_RCCS})
QT5_ADD_RESOURCES(coordinatecapture_RCC_SRCS ${coordinatecapture_RCCS})

ADD_LIBRARY (coordinatecaptureplugin MODULE ${coordinatecapture_SRCS} ${coordinatecapture_MOC_SRCS} ${coordinatecapture_RCC_SRCS})

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/dxf2shp_converter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ SET (dxf2shpconverter_RCCS dxf2shpconverter.qrc)
########################################################
# Build

QT4_WRAP_UI (dxf2shpconverter_UIS_H ${dxf2shpconverter_UIS})
QT5_WRAP_UI (dxf2shpconverter_UIS_H ${dxf2shpconverter_UIS})

QT4_WRAP_CPP (dxf2shpconverter_MOC_SRCS ${dxf2shpconverter_MOC_HDRS})
QT5_WRAP_CPP (dxf2shpconverter_MOC_SRCS ${dxf2shpconverter_MOC_HDRS})

QT4_ADD_RESOURCES(dxf2shpconverter_RCC_SRCS ${dxf2shpconverter_RCCS})
QT5_ADD_RESOURCES(dxf2shpconverter_RCC_SRCS ${dxf2shpconverter_RCCS})

ADD_LIBRARY (dxf2shpconverterplugin MODULE ${dxf2shpconverter_SRCS} ${dxf2shpconverter_MOC_SRCS} ${dxf2shpconverter_RCC_SRCS} ${dxf2shpconverter_UIS_H})

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/evis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ SET (evis_RCCS resources/evis.qrc)
########################################################
# Build

QT4_WRAP_UI (evis_UIS_H ${evis_UIS})
QT5_WRAP_UI (evis_UIS_H ${evis_UIS})

QT4_WRAP_CPP (evis_MOC_SRCS ${evis_MOC_HDRS})
QT5_WRAP_CPP (evis_MOC_SRCS ${evis_MOC_HDRS})

QT4_ADD_RESOURCES(evis_RCC_SRCS ${evis_RCCS})
QT5_ADD_RESOURCES(evis_RCC_SRCS ${evis_RCCS})

ADD_LIBRARY (evis MODULE ${evis_SRCS} ${evis_MOC_SRCS} ${evis_RCC_SRCS} ${evis_UIS_H})

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/geometry_checker/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ SET (geometrychecker_RCCS
########################################################
# Build

QT4_WRAP_UI (geometrychecker_UIS_H ${geometrychecker_UIS})
QT5_WRAP_UI (geometrychecker_UIS_H ${geometrychecker_UIS})

QT4_WRAP_CPP (geometrychecker_MOC_SRCS ${geometrychecker_MOC_HDRS})
QT5_WRAP_CPP (geometrychecker_MOC_SRCS ${geometrychecker_MOC_HDRS})

QT4_ADD_RESOURCES(geometrychecker_RCC_SRCS ${geometrychecker_RCCS})
QT5_ADD_RESOURCES(geometrychecker_RCC_SRCS ${geometrychecker_RCCS})

ADD_LIBRARY (geometrycheckerplugin MODULE ${geometrychecker_HDRS} ${geometrychecker_SRCS} ${geometrychecker_MOC_SRCS} ${geometrychecker_RCC_SRCS} ${geometrychecker_UIS_H})

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/geometry_snapper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ SET (geometrysnapper_RCCS
########################################################
# Build

QT4_WRAP_UI (geometrysnapper_UIS_H ${geometrysnapper_UIS})
QT5_WRAP_UI (geometrysnapper_UIS_H ${geometrysnapper_UIS})

QT4_WRAP_CPP (geometrysnapper_MOC_SRCS ${geometrysnapper_MOC_HDRS})
QT5_WRAP_CPP (geometrysnapper_MOC_SRCS ${geometrysnapper_MOC_HDRS})

QT4_ADD_RESOURCES(geometrysnapper_RCC_SRCS ${geometrysnapper_RCCS})
QT5_ADD_RESOURCES(geometrysnapper_RCC_SRCS ${geometrysnapper_RCCS})

ADD_LIBRARY (geometrysnapperplugin MODULE ${geometrysnapper_HDRS} ${geometrysnapper_SRCS} ${geometrysnapper_MOC_SRCS} ${geometrysnapper_RCC_SRCS} ${geometrysnapper_UIS_H})

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/georeferencer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ SET (GEOREF_RCCS georeferencer.qrc)
########################################################
# Build

QT4_WRAP_UI (GEOREF_UIS_H ${GEOREF_UIS})
QT5_WRAP_UI (GEOREF_UIS_H ${GEOREF_UIS})

QT4_WRAP_CPP (GEOREF_MOC_SRCS ${GEOREF_MOC_HDRS})
QT5_WRAP_CPP (GEOREF_MOC_SRCS ${GEOREF_MOC_HDRS})

QT4_ADD_RESOURCES(GEOREF_RCC_SRCS ${GEOREF_RCCS})
QT5_ADD_RESOURCES(GEOREF_RCC_SRCS ${GEOREF_RCCS})

ADD_LIBRARY (georefplugin MODULE ${GEOREF_SRCS} ${GEOREF_MOC_SRCS} ${GEOREF_RCC_SRCS} ${GEOREF_UIS_H})

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/globe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ ELSE(WIN32)
ADD_DEFINITIONS("-DGLOBE_EXPORT=")
ENDIF(WIN32)

QT4_WRAP_UI (GLOBE_PLUGIN_UIS_H ${GLOBE_PLUGIN_UIS})
QT5_WRAP_UI (GLOBE_PLUGIN_UIS_H ${GLOBE_PLUGIN_UIS})

QT4_WRAP_CPP (GLOBE_PLUGIN_MOC_SRCS ${GLOBE_PLUGIN_MOC_HDRS})
QT5_WRAP_CPP (GLOBE_PLUGIN_MOC_SRCS ${GLOBE_PLUGIN_MOC_HDRS})

QT4_ADD_RESOURCES(GLOBE_PLUGIN_RCC_SRCS ${GLOBE_PLUGIN_RCCS})
QT5_ADD_RESOURCES(GLOBE_PLUGIN_RCC_SRCS ${GLOBE_PLUGIN_RCCS})

ADD_LIBRARY (globeplugin SHARED ${GLOBE_PLUGIN_SRCS} ${GLOBE_PLUGIN_MOC_SRCS} ${GLOBE_PLUGIN_RCC_SRCS} ${GLOBE_PLUGIN_UIS_H} ${GLOBE_PLUGIN_HDRS})

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/globe/featuresource/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SET(TARGET_HDRS
qgsglobefeatureutils.h
)

QT4_WRAP_CPP(TARGET_MOC_SRCS ${TARGET_MOC_HDRS})
QT5_WRAP_CPP(TARGET_MOC_SRCS ${TARGET_MOC_HDRS})

SET(TARGET_SRC ${TARGET_SRC} ${TARGET_MOC_SRCS})

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/gps_importer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ SET (GPS_RCCS qgsgps_plugin.qrc)
########################################################
# Build

QT4_WRAP_UI (GPS_UIS_H ${GPS_UIS})
QT5_WRAP_UI (GPS_UIS_H ${GPS_UIS})

QT4_WRAP_CPP (GPS_MOC_SRCS ${GPS_MOC_HDRS})
QT5_WRAP_CPP (GPS_MOC_SRCS ${GPS_MOC_HDRS})

QT4_ADD_RESOURCES(GPS_RCC_SRCS ${GPS_RCCS})
QT5_ADD_RESOURCES(GPS_RCC_SRCS ${GPS_RCCS})

ADD_LIBRARY (gpsimporterplugin MODULE ${GPS_SRCS} ${GPS_MOC_SRCS} ${GPS_RCC_SRCS} ${GPS_UIS_H})

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/grass/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ MACRO(ADD_GRASSPLUGIN GRASS_BUILD_VERSION)
SET(GRASS_MAJOR_VERSION ${GRASS_MAJOR_VERSION${GRASS_BUILD_VERSION}})
SET(GRASS_MINOR_VERSION ${GRASS_MINOR_VERSION${GRASS_BUILD_VERSION}})

QT4_WRAP_UI (GRASS_PLUGIN_UIS_H ${GRASS_PLUGIN_UIS})
QT4_WRAP_CPP (GRASS_PLUGIN_MOC_SRCS ${GRASS_PLUGIN_MOC_HDRS})
QT4_ADD_RESOURCES(GRASS_PLUGIN_RCC_SRCS ${GRASS_PLUGIN_RCCS})
QT5_WRAP_UI (GRASS_PLUGIN_UIS_H ${GRASS_PLUGIN_UIS})
QT5_WRAP_CPP (GRASS_PLUGIN_MOC_SRCS ${GRASS_PLUGIN_MOC_HDRS})
QT5_ADD_RESOURCES(GRASS_PLUGIN_RCC_SRCS ${GRASS_PLUGIN_RCCS})

ADD_LIBRARY (grassplugin${GRASS_BUILD_VERSION} MODULE
${GRASS_PLUGIN_SRCS}
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/heatmap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ SET (heatmap_RCCS heatmap.qrc)
########################################################
# Build

QT4_WRAP_UI (heatmap_UIS_H ${heatmap_UIS})
QT5_WRAP_UI (heatmap_UIS_H ${heatmap_UIS})

QT4_WRAP_CPP (heatmap_MOC_SRCS ${heatmap_MOC_HDRS})
QT5_WRAP_CPP (heatmap_MOC_SRCS ${heatmap_MOC_HDRS})

QT4_ADD_RESOURCES(heatmap_RCC_SRCS ${heatmap_RCCS})
QT5_ADD_RESOURCES(heatmap_RCC_SRCS ${heatmap_RCCS})

ADD_LIBRARY (heatmapplugin MODULE ${heatmap_SRCS} ${heatmap_MOC_SRCS} ${heatmap_RCC_SRCS} ${heatmap_UIS_H})

Expand Down
6 changes: 3 additions & 3 deletions src/plugins/interpolation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ SET (INTERPOLATION_RCCS interpolator.qrc)
########################################################
# Build

QT4_WRAP_UI (INTERPOLATION_UIS_H ${INTERPOLATION_UIS})
QT5_WRAP_UI (INTERPOLATION_UIS_H ${INTERPOLATION_UIS})

QT4_WRAP_CPP (INTERPOLATION_MOC_SRCS ${INTERPOLATION_MOC_HDRS})
QT5_WRAP_CPP (INTERPOLATION_MOC_SRCS ${INTERPOLATION_MOC_HDRS})

QT4_ADD_RESOURCES(INTERPOLATION_RCC_SRCS ${INTERPOLATION_RCCS})
QT5_ADD_RESOURCES(INTERPOLATION_RCC_SRCS ${INTERPOLATION_RCCS})

ADD_LIBRARY (interpolationplugin MODULE
${INTERPOLATION_SRCS}
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/offline_editing/CMakeLists.txt