Warning, /graphics/digikam/core/utilities/geolocation/geoiface/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 #
0002 # SPDX-FileCopyrightText: 2010-2024, Gilles Caulier, <caulier dot gilles at gmail dot com>
0003 #
0004 # SPDX-License-Identifier: BSD-3-Clause
0005 #
0006 
0007 APPLY_COMMON_POLICIES()
0008 
0009 include_directories($<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Xml,INTERFACE_INCLUDE_DIRECTORIES>
0010                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Network,INTERFACE_INCLUDE_DIRECTORIES>
0011                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Gui,INTERFACE_INCLUDE_DIRECTORIES>
0012                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,INTERFACE_INCLUDE_DIRECTORIES>
0013                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Concurrent,INTERFACE_INCLUDE_DIRECTORIES>
0014 
0015                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::I18n,INTERFACE_INCLUDE_DIRECTORIES>
0016                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::ConfigCore,INTERFACE_INCLUDE_DIRECTORIES>
0017                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::XmlGui,INTERFACE_INCLUDE_DIRECTORIES>
0018 )
0019 
0020 if(${ENABLE_GEOLOCATION})
0021 
0022     include_directories(${MARBLE_INCLUDE_DIR})
0023 
0024 endif()
0025 
0026 if(ENABLE_QWEBENGINE)
0027     include_directories($<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::WebEngineWidgets,INTERFACE_INCLUDE_DIRECTORIES>)
0028 else()
0029     include_directories($<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::WebKitWidgets,INTERFACE_INCLUDE_DIRECTORIES>)
0030 endif()
0031 
0032 
0033 set(libgeoiface_SRCS
0034                      ${CMAKE_CURRENT_SOURCE_DIR}/correlator/track_correlator.cpp
0035                      ${CMAKE_CURRENT_SOURCE_DIR}/correlator/track_correlator_thread.cpp
0036                      ${CMAKE_CURRENT_SOURCE_DIR}/correlator/track_listmodel.cpp
0037                      ${CMAKE_CURRENT_SOURCE_DIR}/correlator/gpscorrelatorwidget.cpp
0038 
0039                      ${CMAKE_CURRENT_SOURCE_DIR}/reversegeocoding/rginfo.cpp
0040                      ${CMAKE_CURRENT_SOURCE_DIR}/reversegeocoding/rgtagmodel.cpp
0041                      ${CMAKE_CURRENT_SOURCE_DIR}/reversegeocoding/rgwidget.cpp
0042                      ${CMAKE_CURRENT_SOURCE_DIR}/reversegeocoding/simpletreemodel.cpp
0043 
0044                      ${CMAKE_CURRENT_SOURCE_DIR}/tracks/trackreader.cpp
0045                      ${CMAKE_CURRENT_SOURCE_DIR}/tracks/trackmanager.cpp
0046 
0047                      ${CMAKE_CURRENT_SOURCE_DIR}/lookup/lookupaltitude.cpp
0048                      ${CMAKE_CURRENT_SOURCE_DIR}/lookup/lookupaltitudegeonames.cpp
0049                      ${CMAKE_CURRENT_SOURCE_DIR}/lookup/lookupfactory.cpp
0050 
0051                      ${CMAKE_CURRENT_SOURCE_DIR}/dragdrop/mapdragdrophandler.cpp
0052                      ${CMAKE_CURRENT_SOURCE_DIR}/dragdrop/gpsitemlistdragdrophandler.cpp
0053 
0054                      ${CMAKE_CURRENT_SOURCE_DIR}/items/gpsitemcontainer.cpp
0055                      ${CMAKE_CURRENT_SOURCE_DIR}/items/gpsitemdelegate.cpp
0056                      ${CMAKE_CURRENT_SOURCE_DIR}/items/gpsitemmodel.cpp
0057                      ${CMAKE_CURRENT_SOURCE_DIR}/items/gpsitemsortproxymodel.cpp
0058                      ${CMAKE_CURRENT_SOURCE_DIR}/items/gpsitemlist.cpp
0059                      ${CMAKE_CURRENT_SOURCE_DIR}/items/gpsitemlistcontextmenu.cpp
0060 
0061                      ${CMAKE_CURRENT_SOURCE_DIR}/core/geodragdrophandler.cpp
0062                      ${CMAKE_CURRENT_SOURCE_DIR}/core/geocoordinates.cpp
0063                      ${CMAKE_CURRENT_SOURCE_DIR}/core/geoifacecommon.cpp
0064                      ${CMAKE_CURRENT_SOURCE_DIR}/core/geomodelhelper.cpp
0065                      ${CMAKE_CURRENT_SOURCE_DIR}/core/geopluginaboutdlg.cpp
0066                      ${CMAKE_CURRENT_SOURCE_DIR}/core/geolocationsettings.cpp
0067                      ${CMAKE_CURRENT_SOURCE_DIR}/core/geolocationsettingscontainer.cpp
0068                      ${CMAKE_CURRENT_SOURCE_DIR}/core/groupstatecomputer.cpp
0069                      ${CMAKE_CURRENT_SOURCE_DIR}/core/gpscommon.cpp
0070                      ${CMAKE_CURRENT_SOURCE_DIR}/core/gpsundocommand.cpp
0071                      ${CMAKE_CURRENT_SOURCE_DIR}/core/gpsgeoifacemodelhelper.cpp
0072 
0073                      ${CMAKE_CURRENT_SOURCE_DIR}/bookmark/gpsbookmarkowner.cpp
0074                      ${CMAKE_CURRENT_SOURCE_DIR}/bookmark/gpsbookmarkmodelhelper.cpp
0075                      ${CMAKE_CURRENT_SOURCE_DIR}/bookmark/bookmarknode.cpp
0076                      ${CMAKE_CURRENT_SOURCE_DIR}/bookmark/bookmarksmenu.cpp
0077                      ${CMAKE_CURRENT_SOURCE_DIR}/bookmark/bookmarksmngr.cpp
0078                      ${CMAKE_CURRENT_SOURCE_DIR}/bookmark/bookmarksdlg.cpp
0079 
0080                      ${CMAKE_CURRENT_SOURCE_DIR}/tiles/abstractmarkertiler.cpp
0081                      ${CMAKE_CURRENT_SOURCE_DIR}/tiles/itemmarkertiler.cpp
0082                      ${CMAKE_CURRENT_SOURCE_DIR}/tiles/tilegrouper.cpp
0083                      ${CMAKE_CURRENT_SOURCE_DIR}/tiles/tileindex.cpp
0084 
0085                      ${CMAKE_CURRENT_SOURCE_DIR}/backends/backend-rg.cpp
0086                      ${CMAKE_CURRENT_SOURCE_DIR}/backends/backend-geonames-rg.cpp
0087                      ${CMAKE_CURRENT_SOURCE_DIR}/backends/backend-geonamesUS-rg.cpp
0088                      ${CMAKE_CURRENT_SOURCE_DIR}/backends/backend-osm-rg.cpp
0089                      ${CMAKE_CURRENT_SOURCE_DIR}/backends/mapbackend.cpp
0090                      ${CMAKE_CURRENT_SOURCE_DIR}/backends/backendgooglemaps.cpp
0091 
0092                      ${CMAKE_CURRENT_SOURCE_DIR}/widgets/placeholderwidget.cpp
0093                      ${CMAKE_CURRENT_SOURCE_DIR}/widgets/mapwidget.cpp
0094                      ${CMAKE_CURRENT_SOURCE_DIR}/widgets/mapwidget_p.cpp
0095                      ${CMAKE_CURRENT_SOURCE_DIR}/widgets/mapwidget_settings.cpp
0096                      ${CMAKE_CURRENT_SOURCE_DIR}/widgets/mapwidget_map.cpp
0097                      ${CMAKE_CURRENT_SOURCE_DIR}/widgets/mapwidget_data.cpp
0098                      ${CMAKE_CURRENT_SOURCE_DIR}/widgets/mapwidget_setup.cpp
0099                      ${CMAKE_CURRENT_SOURCE_DIR}/widgets/mapwidget_appearance.cpp
0100 )
0101 
0102 if(${ENABLE_GEOLOCATION})
0103 
0104     set(libgeoiface_SRCS ${libgeoiface_SRCS}
0105 
0106                          # TODO: files to port to Qt 6 when Marble will be ready
0107 
0108                          ${CMAKE_CURRENT_SOURCE_DIR}/backends/backendmarble.cpp
0109                          ${CMAKE_CURRENT_SOURCE_DIR}/backends/backendmarblelayer.cpp
0110     )
0111 
0112 endif()
0113 
0114 if(ENABLE_QWEBENGINE)
0115     set(libgeoiface_SRCS
0116         ${libgeoiface_SRCS}
0117         ${CMAKE_CURRENT_SOURCE_DIR}/widgets/htmlwidget_qwebengine.cpp
0118        )
0119 else()
0120     set(libgeoiface_SRCS
0121         ${libgeoiface_SRCS}
0122         ${CMAKE_CURRENT_SOURCE_DIR}/widgets/htmlwidget_qwebkit.cpp
0123        )
0124 endif()
0125 
0126 if(NOT Qt6_FOUND)
0127 
0128     # Marble translations need explicit loading
0129     ecm_create_qm_loader(libgeoiface_SRCS marble_qt)
0130 
0131 endif()
0132 
0133 # Used by digikamcore
0134 add_library(core_geoiface_obj OBJECT ${libgeoiface_SRCS})
0135 
0136 target_compile_definitions(core_geoiface_obj
0137                            PRIVATE
0138                            digikamcore_EXPORTS
0139 )