[Marble-devel] [Differential] [Request, 310 lines] D1438: Use Qt5::* notation with target_link_libraries, & PUBLIC/PRIVATE interfacesRemove the few explicit Qt5 include dirs, not needed

kossebau (Friedrich W. H. Kossebau) noreply at phabricator.kde.org
Mon Apr 18 01:56:35 UTC 2016


kossebau created this revision.
kossebau added reviewers: rahn, nienhueser.

REVISION SUMMARY
  Qt5::* notation is the usual way to refer to the imported cmake targets
  representing the Qt5 modules/libs. The ${Qt5*_LIBRARIES} might be from
  the transitional mode, right?
  
  PUBLIC & PRIVATE link interfaces help to speed up compilation & linking,
  because libs listed in PRIVATE will stay implementation detail of the lib
  and not result in consumers of the lib also having those libs in the link
  list. And it also reduces the amount of includes used, so less dirs to
  search headers in.
  
  Separate commit also removes the few explicit Qt5 include dirs, which are not needed:
  The include dirs are automatically added, derived from the
  imported targets for the Qt5 libs that are listed in
  the TARGET_LINK_LIBRARIES command.

TEST PLAN
  Have not yet build for the android platform. Curious why all the listing of
  libs is needed, really for the deployqt tool?

REPOSITORY
  rMARBLE Marble

BRANCH
  cleanupBuildsystemFromOldQt

REVISION DETAIL
  https://phabricator.kde.org/D1438

AFFECTED FILES
  MarbleMacros.cmake
  data/lang/CMakeLists.txt
  examples/cpp/animation-video/CMakeLists.txt
  examples/cpp/basic-routing/CMakeLists.txt
  examples/cpp/custom-layers/CMakeLists.txt
  examples/cpp/geopainter/CMakeLists.txt
  examples/cpp/hello-marble/CMakeLists.txt
  examples/cpp/kml-inspector/CMakeLists.txt
  examples/cpp/kml-screenshot/CMakeLists.txt
  examples/cpp/map-controls/CMakeLists.txt
  examples/cpp/map-properties/CMakeLists.txt
  examples/cpp/marble-game/CMakeLists.txt
  examples/cpp/marbleQuick2/CMakeLists.txt
  examples/cpp/overlay-rendering/CMakeLists.txt
  examples/cpp/pie-charts/CMakeLists.txt
  examples/cpp/reverse-geocoding/CMakeLists.txt
  examples/cpp/route-image/CMakeLists.txt
  examples/cpp/search/CMakeLists.txt
  examples/cpp/squad-interpolation/CMakeLists.txt
  examples/cpp/tour-preview/CMakeLists.txt
  examples/cpp/vehicletracking/CMakeLists.txt
  src/apps/behaim/CMakeLists.txt
  src/apps/marble-maps/CMakeLists.txt
  src/apps/marble-qt/CMakeLists.txt
  src/apps/marble-touch/CMakeLists.txt
  src/apps/marble-ui/CMakeLists.txt
  src/lib/marble/CMakeLists.txt
  src/lib/marble/declarative/CMakeLists.txt
  src/plugins/positionprovider/qtpositioning/CMakeLists.txt
  src/plugins/render/earthquake/CMakeLists.txt
  src/plugins/render/photo/CMakeLists.txt
  src/plugins/render/weather/CMakeLists.txt
  src/plugins/render/wikipedia/CMakeLists.txt
  src/plugins/runner/cyclestreets/CMakeLists.txt
  src/plugins/runner/gpx/CMakeLists.txt
  src/plugins/runner/local-osm-search/CMakeLists.txt
  src/plugins/runner/mapquest/CMakeLists.txt
  src/plugins/runner/monav/CMakeLists.txt
  src/plugins/runner/nominatim-reversegeocoding/CMakeLists.txt
  src/plugins/runner/nominatim-search/CMakeLists.txt
  src/plugins/runner/open-source-routing-machine/CMakeLists.txt
  src/plugins/runner/openlocation-code-search/CMakeLists.txt
  src/plugins/runner/openrouteservice/CMakeLists.txt
  src/plugins/runner/yours/CMakeLists.txt
  tools/asc2kml/CMakeLists.txt
  tools/constellations2kml/CMakeLists.txt
  tools/dateline/CMakeLists.txt
  tools/dso2kml/CMakeLists.txt
  tools/iau2kml/CMakeLists.txt
  tools/kml2cache/CMakeLists.txt
  tools/kml2kml/CMakeLists.txt
  tools/mapreproject/CMakeLists.txt
  tools/maptheme-previewimage/CMakeLists.txt
  tools/osm-addresses/CMakeLists.txt
  tools/osm-sisyphus/CMakeLists.txt
  tools/pnt2svg/CMakeLists.txt
  tools/pntdel/CMakeLists.txt
  tools/pntreplace/CMakeLists.txt
  tools/poly2kml/CMakeLists.txt
  tools/routing-instructions/CMakeLists.txt
  tools/shp2pn2/CMakeLists.txt
  tools/speaker-files/CMakeLists.txt
  tools/stars/CMakeLists.txt
  tools/svg2pnt/CMakeLists.txt
  tools/tilecreator-srtm2/CMakeLists.txt
  tools/tilecreator/CMakeLists.txt

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: kossebau, rahn, nienhueser
Cc: marble-devel


More information about the Marble-devel mailing list