summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2021-01-06 17:37:02 +0100
committerIvan Solovev <ivan.solovev@qt.io>2021-01-20 14:10:41 +0100
commit65ce5e64aa549c536d36d6ae9c18ffd8c8eee0d6 (patch)
tree7d0e6db8287908336e9b0075bcc7bef0c1ed1660
parent89f1e45e487ca6ae3998699153b10c343aef25d9 (diff)
downloadqtlocation-65ce5e64aa549c536d36d6ae9c18ffd8c8eee0d6.tar.gz
QtPositioning: port to cmake
Switching QtPositioning, its tests and examples to cmake. QtLocation is not covered by this patch. Task-number: QTBUG-89854 Change-Id: Ic971f7fd4c576eac9b662641aae77d68c062712d Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--.cmake.conf1
-rw-r--r--.gitignore1
-rw-r--r--CMakeLists.txt21
-rw-r--r--cmake/FindGconf.cmake14
-rw-r--r--cmake/FindGypsy.cmake14
-rw-r--r--coin/module_config.yaml12
-rw-r--r--config.tests/gypsy/CMakeLists.txt23
-rw-r--r--config.tests/winrt/CMakeLists.txt29
-rw-r--r--dependencies.yaml11
-rw-r--r--examples/CMakeLists.txt13
-rw-r--r--examples/positioning/CMakeLists.txt15
-rw-r--r--examples/positioning/geoflickr/CMakeLists.txt85
-rw-r--r--examples/positioning/logfilepositionsource/CMakeLists.txt54
-rw-r--r--examples/positioning/satelliteinfo/CMakeLists.txt55
-rw-r--r--examples/positioning/weatherinfo/CMakeLists.txt74
-rw-r--r--src/3rdparty/clip2tri/CMakeLists.txt47
-rw-r--r--src/3rdparty/clipper/CMakeLists.txt24
-rw-r--r--src/3rdparty/poly2tri/CMakeLists.txt29
-rw-r--r--src/CMakeLists.txt11
-rw-r--r--src/imports/CMakeLists.txt12
-rw-r--r--src/imports/positioning/CMakeLists.txt20
-rw-r--r--src/plugins/CMakeLists.txt9
-rw-r--r--src/plugins/position/CMakeLists.txt25
-rw-r--r--src/plugins/position/android/CMakeLists.txt4
-rw-r--r--src/plugins/position/android/jar/CMakeLists.txt17
-rw-r--r--src/plugins/position/android/src/CMakeLists.txt22
-rw-r--r--src/plugins/position/corelocation/CMakeLists.txt35
-rw-r--r--src/plugins/position/geoclue/CMakeLists.txt35
-rw-r--r--src/plugins/position/geoclue2/CMakeLists.txt30
-rw-r--r--src/plugins/position/gypsy/CMakeLists.txt24
-rw-r--r--src/plugins/position/positionpoll/CMakeLists.txt19
-rw-r--r--src/plugins/position/serialnmea/CMakeLists.txt21
-rw-r--r--src/plugins/position/simulator/CMakeLists.txt27
-rw-r--r--src/plugins/position/winrt/CMakeLists.txt28
-rw-r--r--src/positioning/CMakeLists.txt67
-rw-r--r--src/positioning/configure.cmake28
-rw-r--r--src/positioningquick/CMakeLists.txt31
-rw-r--r--tests/CMakeLists.txt7
-rw-r--r--tests/applications/positioning_backend/CMakeLists.txt28
-rw-r--r--tests/auto/CMakeLists.txt83
-rw-r--r--tests/auto/doublevectors/CMakeLists.txt16
-rw-r--r--tests/auto/positionplugin/CMakeLists.txt21
-rw-r--r--tests/auto/positionpluginV1/CMakeLists.txt21
-rw-r--r--tests/auto/positionplugintest/CMakeLists.txt16
-rw-r--r--tests/auto/qgeoaddress/CMakeLists.txt16
-rw-r--r--tests/auto/qgeoareamonitor/CMakeLists.txt18
-rw-r--r--tests/auto/qgeocircle/CMakeLists.txt16
-rw-r--r--tests/auto/qgeocoordinate/CMakeLists.txt14
-rw-r--r--tests/auto/qgeolocation/CMakeLists.txt14
-rw-r--r--tests/auto/qgeopath/CMakeLists.txt16
-rw-r--r--tests/auto/qgeopolygon/CMakeLists.txt16
-rw-r--r--tests/auto/qgeopositioninfo/CMakeLists.txt16
-rw-r--r--tests/auto/qgeopositioninfosource/CMakeLists.txt19
-rw-r--r--tests/auto/qgeorectangle/CMakeLists.txt16
-rw-r--r--tests/auto/qgeosatelliteinfo/CMakeLists.txt16
-rw-r--r--tests/auto/qgeosatelliteinfosource/CMakeLists.txt22
-rw-r--r--tests/auto/qgeoshape/CMakeLists.txt14
-rw-r--r--tests/auto/qnmeapositioninfosource/CMakeLists.txt7
-rw-r--r--tests/auto/qnmeapositioninfosource/dummynmeapositioninfosource/CMakeLists.txt24
-rw-r--r--tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_realtime/CMakeLists.txt25
-rw-r--r--tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_realtime_generic/CMakeLists.txt26
-rw-r--r--tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_simulation/CMakeLists.txt25
-rw-r--r--tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_simulation_generic/CMakeLists.txt31
-rw-r--r--tests/manual/mapitems_backends/CMakeLists.txt49
-rw-r--r--tests/manual/mapobjects_tester/CMakeLists.txt49
-rw-r--r--tests/manual/mappolyline_tester/CMakeLists.txt46
66 files changed, 1667 insertions, 7 deletions
diff --git a/.cmake.conf b/.cmake.conf
new file mode 100644
index 00000000..213991f5
--- /dev/null
+++ b/.cmake.conf
@@ -0,0 +1 @@
+set(QT_REPO_MODULE_VERSION "6.1.0")
diff --git a/.gitignore b/.gitignore
index a4fa8e34..7ff374ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,6 +34,7 @@ Makefile*
*.prl
*.app
*.pro.user
+CMakeLists.txt.user*
*.qmlproject.user
*.gcov
config.log
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 00000000..5d0cc0c1
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from qtlocation.pro.
+
+cmake_minimum_required(VERSION 3.15.0)
+
+include(.cmake.conf)
+project(QtLocation
+ VERSION "${QT_REPO_MODULE_VERSION}"
+ DESCRIPTION "Qt Location Libraries"
+ HOMEPAGE_URL "https://qt.io/"
+ LANGUAGES CXX C
+)
+
+find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) # special case
+find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Quick Qml Gui Widgets Network Test DBus SerialPort) # special case
+# add simulator later. Probably smth else from QtLocation dependencies
+
+if(WASM)
+ message(NOTICE "Skipping the build as the condition \"NOT WASM\" is not met.")
+ return()
+endif()
+qt_build_repo()
diff --git a/cmake/FindGconf.cmake b/cmake/FindGconf.cmake
new file mode 100644
index 00000000..d2db910a
--- /dev/null
+++ b/cmake/FindGconf.cmake
@@ -0,0 +1,14 @@
+find_package(PkgConfig QUIET)
+if (PkgConfig_FOUND)
+ pkg_check_modules(Gconf gconf-2.0 IMPORTED_TARGET)
+
+ if (TARGET PkgConfig::Gconf)
+ mark_as_advanced(Gconf_LIBRARIES Gconf_INCLUDE_DIRS)
+ if (NOT TARGET Gconf::Gconf)
+ add_library(Gconf::Gconf INTERFACE IMPORTED)
+ target_link_libraries(Gconf::Gconf INTERFACE PkgConfig::Gconf)
+ endif()
+ else()
+ set(Gconf_FOUND 0)
+ endif()
+endif()
diff --git a/cmake/FindGypsy.cmake b/cmake/FindGypsy.cmake
new file mode 100644
index 00000000..3639568e
--- /dev/null
+++ b/cmake/FindGypsy.cmake
@@ -0,0 +1,14 @@
+find_package(PkgConfig QUIET)
+if (PkgConfig_FOUND)
+ pkg_check_modules(Gypsy gypsy IMPORTED_TARGET)
+
+ if (TARGET PkgConfig::Gypsy)
+ mark_as_advanced(Gypsy_LIBRARIES Gypsy_INCLUDE_DIRS)
+ if (NOT TARGET Gypsy::Gypsy)
+ add_library(Gypsy::Gypsy INTERFACE IMPORTED)
+ target_link_libraries(Gypsy::Gypsy INTERFACE PkgConfig::Gypsy)
+ endif()
+ else()
+ set(Gypsy_FOUND 0)
+ endif()
+endif()
diff --git a/coin/module_config.yaml b/coin/module_config.yaml
new file mode 100644
index 00000000..16d158c6
--- /dev/null
+++ b/coin/module_config.yaml
@@ -0,0 +1,12 @@
+version: 2
+accept_configuration:
+ condition: property
+ property: features
+ not_contains_value: Disable
+
+instructions:
+ Build:
+ - !include "{{qt/qtbase}}/coin_module_build_template_v2.yaml"
+
+ Test:
+ - !include "{{qt/qtbase}}/coin_module_test_template_v3.yaml"
diff --git a/config.tests/gypsy/CMakeLists.txt b/config.tests/gypsy/CMakeLists.txt
new file mode 100644
index 00000000..48cc2fb7
--- /dev/null
+++ b/config.tests/gypsy/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Generated from gypsy.pro.
+
+cmake_minimum_required(VERSION 3.14.0)
+project(config_test_gypsy LANGUAGES C CXX)
+
+foreach(p ${QT_CONFIG_COMPILE_TEST_PACKAGES})
+ find_package(${p})
+endforeach()
+
+if(QT_CONFIG_COMPILE_TEST_LIBRARIES)
+ link_libraries(${QT_CONFIG_COMPILE_TEST_LIBRARIES})
+endif()
+if(QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS)
+ foreach(lib ${QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS})
+ if(TARGET ${lib})
+ link_libraries(${lib})
+ endif()
+ endforeach()
+endif()
+
+add_executable(${PROJECT_NAME}
+ main.cpp
+)
diff --git a/config.tests/winrt/CMakeLists.txt b/config.tests/winrt/CMakeLists.txt
new file mode 100644
index 00000000..b6a9fb97
--- /dev/null
+++ b/config.tests/winrt/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Generated from winrt.pro.
+
+cmake_minimum_required(VERSION 3.14.0)
+project(config_test_winrt LANGUAGES C CXX)
+
+foreach(p ${QT_CONFIG_COMPILE_TEST_PACKAGES})
+ find_package(${p})
+endforeach()
+
+if(QT_CONFIG_COMPILE_TEST_LIBRARIES)
+ link_libraries(${QT_CONFIG_COMPILE_TEST_LIBRARIES})
+endif()
+if(QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS)
+ foreach(lib ${QT_CONFIG_COMPILE_TEST_LIBRARY_TARGETS})
+ if(TARGET ${lib})
+ link_libraries(${lib})
+ endif()
+ endforeach()
+endif()
+
+add_executable(${PROJECT_NAME}
+ main.cpp
+)
+
+if(MSVC)
+ target_link_libraries(${PROJECT_NAME} PRIVATE
+ runtimeobject.lib
+ )
+endif()
diff --git a/dependencies.yaml b/dependencies.yaml
index bc94f4e2..a12204de 100644
--- a/dependencies.yaml
+++ b/dependencies.yaml
@@ -1,16 +1,13 @@
dependencies:
../qtbase:
- ref: e0b89899e3c505edbdece60d6a2d2368a7ef9a01
+ ref: b101f84f86e541fa30c0d6d2a4e549cf51118706
required: true
../qtdeclarative:
- ref: dbc6b9bfc7e6f1c7e212460105b426b8e80db671
- required: false
- ../qtquickcontrols:
- ref: e5658a34159ae32cff7a6c0e1295171c00fe923a
+ ref: 48927f80ad97bfbe739a85d9dd726679601798a8
required: false
../qtquickcontrols2:
- ref: cc562c491ae6344d5956dbe4962b1dd09744551a
+ ref: 569d37253b86b2e6147d90113b77bddc4b057da2
required: false
../qtserialport:
- ref: 0be470fd433e7514f3285ebdb1de776836048596
+ ref: 0cecc4f63e4f47072788d9639ae2c773ea8c3d81
required: false
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 00000000..04b5b3f5
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,13 @@
+# Generated from examples.pro.
+
+qt_examples_build_begin()
+
+if(TARGET Qt::Positioning)
+ add_subdirectory(positioning)
+endif()
+# TODO: Enable location examples later!
+# if(TARGET Qt::Location AND TARGET Qt::Positioning)
+# add_subdirectory(location)
+# endif()
+
+qt_examples_build_end()
diff --git a/examples/positioning/CMakeLists.txt b/examples/positioning/CMakeLists.txt
new file mode 100644
index 00000000..a07ff1c5
--- /dev/null
+++ b/examples/positioning/CMakeLists.txt
@@ -0,0 +1,15 @@
+# Generated from positioning.pro.
+
+if(TARGET Qt::Widgets)
+ add_subdirectory(logfilepositionsource)
+endif()
+if(TARGET Qt::Quick)
+ add_subdirectory(satelliteinfo)
+endif()
+# TODO: enable when the XmlListModel is ported
+# if(TARGET Qt::Quick AND TARGET Qt::XmlPatterns)
+# add_subdirectory(geoflickr)
+# endif()
+if(TARGET Qt::Network AND TARGET Qt::Quick)
+ add_subdirectory(weatherinfo)
+endif()
diff --git a/examples/positioning/geoflickr/CMakeLists.txt b/examples/positioning/geoflickr/CMakeLists.txt
new file mode 100644
index 00000000..b9fdeb85
--- /dev/null
+++ b/examples/positioning/geoflickr/CMakeLists.txt
@@ -0,0 +1,85 @@
+# Generated from geoflickr.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(geoflickr LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+if(NOT DEFINED INSTALL_EXAMPLESDIR)
+ set(INSTALL_EXAMPLESDIR "examples")
+endif()
+
+set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/positioning/geoflickr")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS Network)
+find_package(Qt6 COMPONENTS Positioning)
+find_package(Qt6 COMPONENTS XmlPatterns)
+
+qt_add_executable(geoflickr
+ qmllocationflickr.cpp
+)
+set_target_properties(geoflickr PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
+target_link_libraries(geoflickr PRIVATE
+ Qt::Core
+ Qt::Gui
+ Qt::Network
+ Qt::Positioning
+ Qt::Qml
+ Qt::Quick
+ Qt::XmlPatterns
+)
+
+
+# Resources:
+set(flickr_resource_files
+ "flickr-90.qml"
+ "flickr.qml"
+ "flickrcommon/Progress.qml"
+ "flickrcommon/RestModel.qml"
+ "flickrcommon/ScrollBar.qml"
+ "flickrcommon/Slider.qml"
+ "flickrmobile/Button.qml"
+ "flickrmobile/GeoTab.qml"
+ "flickrmobile/GridDelegate.qml"
+ "flickrmobile/ImageDetails.qml"
+ "flickrmobile/ListDelegate.qml"
+ "flickrmobile/TitleBar.qml"
+ "flickrmobile/ToolBar.qml"
+ "flickrmobile/images/gloss.png"
+ "flickrmobile/images/lineedit.png"
+ "flickrmobile/images/lineedit.sci"
+ "flickrmobile/images/moon.png"
+ "flickrmobile/images/quit.png"
+ "flickrmobile/images/star.png"
+ "flickrmobile/images/stripes.png"
+ "flickrmobile/images/sun.png"
+ "flickrmobile/images/titlebar.png"
+ "flickrmobile/images/titlebar.sci"
+ "flickrmobile/images/toolbutton.png"
+ "flickrmobile/images/toolbutton.sci"
+ "flickrmobile/nmealog.txt"
+)
+
+qt6_add_resources(geoflickr "flickr"
+ PREFIX
+ "/"
+ FILES
+ ${flickr_resource_files}
+)
+
+install(TARGETS geoflickr
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/positioning/logfilepositionsource/CMakeLists.txt b/examples/positioning/logfilepositionsource/CMakeLists.txt
new file mode 100644
index 00000000..2ae7c5f3
--- /dev/null
+++ b/examples/positioning/logfilepositionsource/CMakeLists.txt
@@ -0,0 +1,54 @@
+# Generated from logfilepositionsource.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(logfilepositionsource LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+if(NOT DEFINED INSTALL_EXAMPLESDIR)
+ set(INSTALL_EXAMPLESDIR "examples")
+endif()
+
+set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/positioning/logfilepositionsource")
+
+find_package(Qt6 COMPONENTS Positioning)
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Widgets)
+
+qt_add_executable(logfilepositionsource
+ clientapplication.cpp clientapplication.h
+ logfilepositionsource.cpp logfilepositionsource.h
+ main.cpp
+)
+set_target_properties(logfilepositionsource PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
+target_link_libraries(logfilepositionsource PRIVATE
+ Qt::Core
+ Qt::Positioning
+ Qt::Widgets
+)
+
+
+# Resources:
+set(logfile_resource_files
+ "simplelog.txt"
+)
+
+qt6_add_resources(logfilepositionsource "logfile"
+ PREFIX
+ "/"
+ FILES
+ ${logfile_resource_files}
+)
+
+install(TARGETS logfilepositionsource
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/positioning/satelliteinfo/CMakeLists.txt b/examples/positioning/satelliteinfo/CMakeLists.txt
new file mode 100644
index 00000000..9e0bdebf
--- /dev/null
+++ b/examples/positioning/satelliteinfo/CMakeLists.txt
@@ -0,0 +1,55 @@
+# Generated from satelliteinfo.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(satelliteinfo LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+if(NOT DEFINED INSTALL_EXAMPLESDIR)
+ set(INSTALL_EXAMPLESDIR "examples")
+endif()
+
+set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/positioning/satelliteinfo")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Quick)
+find_package(Qt6 COMPONENTS Positioning)
+
+qt_add_executable(satelliteinfo
+ main.cpp
+ satellitemodel.cpp satellitemodel.h
+)
+set_target_properties(satelliteinfo PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
+target_link_libraries(satelliteinfo PRIVATE
+ Qt::Core
+ Qt::Gui
+ Qt::Positioning
+ Qt::Quick
+)
+
+
+# Resources:
+set(satelliteinfo_resource_files
+ "satelliteinfo.qml"
+)
+
+qt6_add_resources(satelliteinfo "satelliteinfo"
+ PREFIX
+ "/"
+ FILES
+ ${satelliteinfo_resource_files}
+)
+
+install(TARGETS satelliteinfo
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/examples/positioning/weatherinfo/CMakeLists.txt b/examples/positioning/weatherinfo/CMakeLists.txt
new file mode 100644
index 00000000..5ed9b48e
--- /dev/null
+++ b/examples/positioning/weatherinfo/CMakeLists.txt
@@ -0,0 +1,74 @@
+# Generated from weatherinfo.pro.
+
+cmake_minimum_required(VERSION 3.14)
+project(weatherinfo LANGUAGES CXX)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
+set(CMAKE_AUTOUIC ON)
+
+if(NOT DEFINED INSTALL_EXAMPLESDIR)
+ set(INSTALL_EXAMPLESDIR "examples")
+endif()
+
+set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/positioning/weatherinfo")
+
+find_package(Qt6 COMPONENTS Core)
+find_package(Qt6 COMPONENTS Gui)
+find_package(Qt6 COMPONENTS Network)
+find_package(Qt6 COMPONENTS Positioning)
+find_package(Qt6 COMPONENTS Qml)
+find_package(Qt6 COMPONENTS Quick)
+
+qt_add_executable(weatherinfo
+ appmodel.cpp appmodel.h
+ main.cpp
+)
+set_target_properties(weatherinfo PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
+target_link_libraries(weatherinfo PRIVATE
+ Qt::Core
+ Qt::Gui
+ Qt::Network
+ Qt::Positioning
+ Qt::Qml
+ Qt::Quick
+)
+
+
+# Resources:
+set(weatherinfo_resource_files
+ "components/BigForecastIcon.qml"
+ "components/ForecastIcon.qml"
+ "components/WeatherIcon.qml"
+ "icons/weather-few-clouds.png"
+ "icons/weather-fog.png"
+ "icons/weather-haze.png"
+ "icons/weather-icy.png"
+ "icons/weather-overcast.png"
+ "icons/weather-showers.png"
+ "icons/weather-sleet.png"
+ "icons/weather-snow.png"
+ "icons/weather-storm.png"
+ "icons/weather-sunny-very-few-clouds.png"
+ "icons/weather-sunny.png"
+ "icons/weather-thundershower.png"
+ "weatherinfo.qml"
+)
+
+qt6_add_resources(weatherinfo "weatherinfo"
+ PREFIX
+ "/"
+ FILES
+ ${weatherinfo_resource_files}
+)
+
+install(TARGETS weatherinfo
+ RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
+ BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
+ LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
+)
diff --git a/src/3rdparty/clip2tri/CMakeLists.txt b/src/3rdparty/clip2tri/CMakeLists.txt
new file mode 100644
index 00000000..4e84ee71
--- /dev/null
+++ b/src/3rdparty/clip2tri/CMakeLists.txt
@@ -0,0 +1,47 @@
+# Generated from clip2tri.pro.
+
+#####################################################################
+## Bundled_Clip2Tri Generic Library:
+#####################################################################
+
+qt_internal_add_3rdparty_library(Bundled_Clip2Tri
+ QMAKE_LIB_NAME _clip2tri
+ STATIC
+ SKIP_AUTOMOC # special case
+ EXCEPTIONS
+ SOURCES
+ clip2tri.cpp clip2tri.h
+ INCLUDE_DIRECTORIES
+ ../clipper
+ ../poly2tri
+ LIBRARIES
+ # Remove: L/lib
+ Bundled_Clipper # special case
+ Bundled_Poly2Tri # special case
+)
+qt_disable_warnings(Bundled_Clip2Tri)
+
+# special case begin
+
+# Generating an alias target, so that the unneeded include dependency is not
+# generated in STATIC build.
+# Otherwise the Bundled_Clip2Tri target will match to one of the
+# ${known_modules}, and will be added to generate a wierd
+# #include <QtBundled_Clip2Tri/QtBundled_Clip2Tri>
+# in the QtPositioning/QtPositioningDepends.
+# The root cause for such behavior are
+# function(qt_internal_create_module_depends_file target)
+# and
+# function(qt_internal_write_depends_file module)
+add_library(Clip2Tri::Clip2Tri ALIAS Bundled_Clip2Tri)
+
+# special case end
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 3:.:.:clip2tri.pro:GCC:
+# QMAKE_CFLAGS_OPTIMIZE_FULL = "-ffast-math"
+
+#### Keys ignored in scope 4:.:.:clip2tri.pro:NOT CLANG AND NOT ICC AND NOT rim_qcc:
+# QMAKE_CXXFLAGS_WARN_ON = "-Wno-error=return-type"
diff --git a/src/3rdparty/clipper/CMakeLists.txt b/src/3rdparty/clipper/CMakeLists.txt
new file mode 100644
index 00000000..c85d27b2
--- /dev/null
+++ b/src/3rdparty/clipper/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from clipper.pro.
+
+#####################################################################
+## Bundled_Clipper Generic Library:
+#####################################################################
+
+qt_internal_add_3rdparty_library(Bundled_Clipper
+ QMAKE_LIB_NAME _clipper
+ STATIC
+ SKIP_AUTOMOC # special case
+ EXCEPTIONS
+ SOURCES
+ clipper.cpp clipper.h
+)
+qt_disable_warnings(Bundled_Clipper)
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 3:.:.:clipper.pro:GCC:
+# QMAKE_CFLAGS_OPTIMIZE_FULL = "-ffast-math"
+
+#### Keys ignored in scope 4:.:.:clipper.pro:NOT CLANG AND NOT ICC AND NOT rim_qcc:
+# QMAKE_CXXFLAGS_WARN_ON = "-Wno-error=return-type"
diff --git a/src/3rdparty/poly2tri/CMakeLists.txt b/src/3rdparty/poly2tri/CMakeLists.txt
new file mode 100644
index 00000000..083a98cd
--- /dev/null
+++ b/src/3rdparty/poly2tri/CMakeLists.txt
@@ -0,0 +1,29 @@
+# Generated from poly2tri.pro.
+
+#####################################################################
+## Bundled_Poly2Tri Generic Library:
+#####################################################################
+
+qt_internal_add_3rdparty_library(Bundled_Poly2Tri
+ QMAKE_LIB_NAME _poly2tri
+ STATIC
+ SKIP_AUTOMOC # special case
+ SOURCES
+ common/shapes.cpp common/shapes.h
+ common/utils.h
+ poly2tri.h
+ sweep/advancing_front.cpp sweep/advancing_front.h
+ sweep/cdt.cpp sweep/cdt.h
+ sweep/sweep.cpp sweep/sweep.h
+ sweep/sweep_context.cpp sweep/sweep_context.h
+)
+qt_disable_warnings(Bundled_Poly2Tri)
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 3:.:.:poly2tri.pro:GCC:
+# QMAKE_CFLAGS_OPTIMIZE_FULL = "-ffast-math"
+
+#### Keys ignored in scope 4:.:.:poly2tri.pro:NOT CLANG AND NOT ICC AND NOT rim_qcc:
+# QMAKE_CXXFLAGS_WARN_ON = "-Wno-error=return-type"
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 00000000..c17382a0
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,11 @@
+# special case begin
+add_subdirectory(3rdparty/clip2tri)
+add_subdirectory(3rdparty/poly2tri)
+add_subdirectory(3rdparty/clipper)
+add_subdirectory(positioning)
+add_subdirectory(plugins)
+if(TARGET Qt::Quick)
+ add_subdirectory(positioningquick)
+ add_subdirectory(imports)
+endif()
+# special case end
diff --git a/src/imports/CMakeLists.txt b/src/imports/CMakeLists.txt
new file mode 100644
index 00000000..09b60025
--- /dev/null
+++ b/src/imports/CMakeLists.txt
@@ -0,0 +1,12 @@
+# Generated from imports.pro.
+
+if(TARGET Qt::PositioningQuick)
+ add_subdirectory(positioning)
+endif()
+# TODO: enable location imports later!
+# if(TARGET Qt::Location)
+# add_subdirectory(location)
+# endif()
+# if(QT_FEATURE_location_labs_plugin AND TARGET Qt::Location)
+# add_subdirectory(locationlabs)
+# endif()
diff --git a/src/imports/positioning/CMakeLists.txt b/src/imports/positioning/CMakeLists.txt
new file mode 100644
index 00000000..f849ad2d
--- /dev/null
+++ b/src/imports/positioning/CMakeLists.txt
@@ -0,0 +1,20 @@
+# special case begin
+qt_internal_add_qml_module(declarative_positioning
+ URI "QtPositioning"
+ VERSION "${CMAKE_PROJECT_VERSION}"
+ CLASSNAME QtPositioningDeclarativeModule
+ SKIP_TYPE_REGISTRATION
+ #GENERATE_QMLTYPES
+ INSTALL_QMLTYPES
+ SOURCES
+ positioning.cpp
+ locationsingleton.cpp
+ locationsingleton.h
+ PUBLIC_LIBRARIES
+ Qt::QuickPrivate
+ Qt::PositioningPrivate
+ Qt::PositioningQuickPrivate
+ Qt::QmlPrivate
+ Qt::CorePrivate
+)
+# special case end
diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
new file mode 100644
index 00000000..bf9732ab
--- /dev/null
+++ b/src/plugins/CMakeLists.txt
@@ -0,0 +1,9 @@
+# Generated from plugins.pro.
+
+if(TARGET Qt::Positioning)
+ add_subdirectory(position)
+endif()
+# TODO: enable location plugins later!
+# if(TARGET Qt::Location)
+# add_subdirectory(geoservices)
+# endif()
diff --git a/src/plugins/position/CMakeLists.txt b/src/plugins/position/CMakeLists.txt
new file mode 100644
index 00000000..1ab375a0
--- /dev/null
+++ b/src/plugins/position/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from position.pro.
+
+add_subdirectory(positionpoll)
+if(FREEBSD OR LINUX OR OPENBSD OR (NETBSD AND TARGET Qt::DBus))
+ add_subdirectory(geoclue)
+ add_subdirectory(geoclue2)
+endif()
+if(QT_FEATURE_gypsy)
+ add_subdirectory(gypsy)
+endif()
+if(QT_FEATURE_winrt_geolocation)
+ add_subdirectory(winrt)
+endif()
+if(TARGET simulator)
+ add_subdirectory(simulator)
+endif()
+if(IOS OR MACOS OR TVOS)
+ add_subdirectory(corelocation)
+endif()
+if(ANDROID)
+ add_subdirectory(android)
+endif()
+if(TARGET Qt::SerialPort)
+ add_subdirectory(serialnmea)
+endif()
diff --git a/src/plugins/position/android/CMakeLists.txt b/src/plugins/position/android/CMakeLists.txt
new file mode 100644
index 00000000..22fe2b6b
--- /dev/null
+++ b/src/plugins/position/android/CMakeLists.txt
@@ -0,0 +1,4 @@
+# Generated from android.pro.
+
+add_subdirectory(jar)
+add_subdirectory(src)
diff --git a/src/plugins/position/android/jar/CMakeLists.txt b/src/plugins/position/android/jar/CMakeLists.txt
new file mode 100644
index 00000000..db40330d
--- /dev/null
+++ b/src/plugins/position/android/jar/CMakeLists.txt
@@ -0,0 +1,17 @@
+# Generated from jar.pro.
+
+set(java_sources
+ src/org/qtproject/qt5/android/positioning/QtPositioning.java
+)
+
+qt_internal_add_jar(QtPositioning
+ INCLUDE_JARS ${QT_ANDROID_JAR}
+ SOURCES ${java_sources}
+ OUTPUT_DIR "${QT_BUILD_DIR}/jar"
+)
+
+install_jar(QtPositioning
+ DESTINATION jar
+ COMPONENT Devel
+)
+
diff --git a/src/plugins/position/android/src/CMakeLists.txt b/src/plugins/position/android/src/CMakeLists.txt
new file mode 100644
index 00000000..ed7d4b73
--- /dev/null
+++ b/src/plugins/position/android/src/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from src.pro.
+
+#####################################################################
+## QGeoPositionInfoSourceFactoryAndroid Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QGeoPositionInfoSourceFactoryAndroid
+ OUTPUT_NAME qtposition_android
+ TYPE position
+ SOURCES
+ jnipositioning.cpp jnipositioning.h
+ positionfactory_android.cpp positionfactory_android.h
+ qgeopositioninfosource_android.cpp qgeopositioninfosource_android_p.h
+ qgeosatelliteinfosource_android.cpp qgeosatelliteinfosource_android_p.h
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::CorePrivate
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:src.pro:<TRUE>:
+# OTHER_FILES = "plugin.json"
diff --git a/src/plugins/position/corelocation/CMakeLists.txt b/src/plugins/position/corelocation/CMakeLists.txt
new file mode 100644
index 00000000..6d6f9db7
--- /dev/null
+++ b/src/plugins/position/corelocation/CMakeLists.txt
@@ -0,0 +1,35 @@
+# Generated from corelocation.pro.
+
+#####################################################################
+## QGeoPositionInfoSourceFactoryCL Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QGeoPositionInfoSourceFactoryCL
+ OUTPUT_NAME qtposition_cl
+ TYPE position
+ SOURCES
+ qgeopositioninfosource_cl.mm qgeopositioninfosource_cl_p.h
+ qgeopositioninfosourcefactory_cl.h qgeopositioninfosourcefactory_cl.mm
+ PUBLIC_LIBRARIES
+ ${FWCoreLocation}
+ ${FWFoundation}
+ Qt::Core
+ Qt::CorePrivate
+ Qt::Positioning
+)
+
+# special case begin
+set_target_properties(QGeoPositionInfoSourceFactoryCL
+ PROPERTIES
+ DISABLE_PRECOMPILE_HEADERS ON
+)
+# special case end
+
+#### Keys ignored in scope 1:.:.:corelocation.pro:<TRUE>:
+# OTHER_FILES = "plugin.json"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:.:corelocation.pro:NOT APPLE:
+# DISTFILES = "$$OBJECTIVE_SOURCES"
diff --git a/src/plugins/position/geoclue/CMakeLists.txt b/src/plugins/position/geoclue/CMakeLists.txt
new file mode 100644
index 00000000..0606e654
--- /dev/null
+++ b/src/plugins/position/geoclue/CMakeLists.txt
@@ -0,0 +1,35 @@
+# Generated from geoclue.pro.
+
+#####################################################################
+## QGeoPositionInfoSourceFactoryGeoclue Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QGeoPositionInfoSourceFactoryGeoclue
+ OUTPUT_NAME qtposition_geoclue
+ TYPE position
+ SOURCES
+ geocluetypes.cpp geocluetypes.h
+ qgeocluemaster.cpp qgeocluemaster.h
+ qgeopositioninfosource_geocluemaster.cpp qgeopositioninfosource_geocluemaster.h
+ qgeopositioninfosourcefactory_geoclue.cpp qgeopositioninfosourcefactory_geoclue.h
+ qgeosatelliteinfosource_geocluemaster.cpp qgeosatelliteinfosource_geocluemaster.h
+ DBUS_INTERFACE_SOURCES
+ org.freedesktop.Geoclue.xml
+ org.freedesktop.Geoclue.Master.xml
+ org.freedesktop.Geoclue.MasterClient.xml
+ org.freedesktop.Geoclue.Position.xml
+ org.freedesktop.Geoclue.Satellite.xml
+ org.freedesktop.Geoclue.Velocity.xml
+ DBUS_INTERFACE_FLAGS
+ -N -i geocluetypes.h # special case
+ INCLUDE_DIRECTORIES
+ ${CMAKE_CURRENT_BINARY_DIR}
+ core.location.includes
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::DBus
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:geoclue.pro:<TRUE>:
+# OTHER_FILES = "$$DBUS_INTERFACES" "plugin.json"
diff --git a/src/plugins/position/geoclue2/CMakeLists.txt b/src/plugins/position/geoclue2/CMakeLists.txt
new file mode 100644
index 00000000..bb73a6ae
--- /dev/null
+++ b/src/plugins/position/geoclue2/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Generated from geoclue2.pro.
+
+#####################################################################
+## QGeoPositionInfoSourceFactoryGeoclue2 Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QGeoPositionInfoSourceFactoryGeoclue2
+ OUTPUT_NAME qtposition_geoclue2
+ TYPE position
+ SOURCES
+ geocluetypes.cpp geocluetypes.h
+ qgeopositioninfosource_geoclue2.cpp qgeopositioninfosource_geoclue2_p.h
+ qgeopositioninfosourcefactory_geoclue2.cpp qgeopositioninfosourcefactory_geoclue2.h
+ DBUS_INTERFACE_SOURCES
+ org.freedesktop.GeoClue2.Client.xml
+ org.freedesktop.GeoClue2.Location.xml
+ org.freedesktop.GeoClue2.Manager.xml
+ DBUS_INTERFACE_FLAGS
+ -N -i geocluetypes.h # special case
+ INCLUDE_DIRECTORIES
+ ${CMAKE_CURRENT_BINARY_DIR}
+ core.location.includes
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::DBus
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:geoclue2.pro:<TRUE>:
+# OTHER_FILES = "plugin.json"
diff --git a/src/plugins/position/gypsy/CMakeLists.txt b/src/plugins/position/gypsy/CMakeLists.txt
new file mode 100644
index 00000000..b65f91c3
--- /dev/null
+++ b/src/plugins/position/gypsy/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from gypsy.pro.
+
+#####################################################################
+## QGeoPositionInfoSourceFactoryGypsy Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QGeoPositionInfoSourceFactoryGypsy
+ OUTPUT_NAME qtposition_gypsy
+ TYPE position
+ SOURCES
+ qgeopositioninfosourcefactory_gypsy.cpp qgeopositioninfosourcefactory_gypsy.h
+ qgeosatelliteinfosource_gypsy.cpp qgeosatelliteinfosource_gypsy_p.h
+# special case begin
+ LIBRARIES
+ Gypsy::Gypsy
+ Gconf::Gconf
+ Qt::PositioningPrivate
+ PUBLIC_LIBRARIES
+ Qt::Core
+# special case end
+)
+
+#### Keys ignored in scope 1:.:.:gypsy.pro:<TRUE>:
+# OTHER_FILES = "plugin.json"
diff --git a/src/plugins/position/positionpoll/CMakeLists.txt b/src/plugins/position/positionpoll/CMakeLists.txt
new file mode 100644
index 00000000..333335b7
--- /dev/null
+++ b/src/plugins/position/positionpoll/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from positionpoll.pro.
+
+#####################################################################
+## QGeoPositionInfoSourceFactoryPoll Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QGeoPositionInfoSourceFactoryPoll
+ OUTPUT_NAME qtposition_positionpoll
+ TYPE position
+ SOURCES
+ positionpollfactory.cpp positionpollfactory.h
+ qgeoareamonitor_polling.cpp qgeoareamonitor_polling.h
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:positionpoll.pro:<TRUE>:
+# OTHER_FILES = "plugin.json"
diff --git a/src/plugins/position/serialnmea/CMakeLists.txt b/src/plugins/position/serialnmea/CMakeLists.txt
new file mode 100644
index 00000000..dbe25015
--- /dev/null
+++ b/src/plugins/position/serialnmea/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from serialnmea.pro.
+
+#####################################################################
+## QGeoPositionInfoSourceFactorySerialNmea Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QGeoPositionInfoSourceFactorySerialNmea
+ OUTPUT_NAME qtposition_serialnmea
+ TYPE position
+ SOURCES
+ qgeopositioninfosourcefactory_serialnmea.cpp qgeopositioninfosourcefactory_serialnmea.h
+ qiopipe.cpp qiopipe_p.h
+ qnmeasatelliteinfosource.cpp qnmeasatelliteinfosource_p.h
+ PUBLIC_LIBRARIES
+ Qt::CorePrivate
+ Qt::PositioningPrivate
+ Qt::SerialPort
+)
+
+#### Keys ignored in scope 1:.:.:serialnmea.pro:<TRUE>:
+# OTHER_FILES = "plugin.json"
diff --git a/src/plugins/position/simulator/CMakeLists.txt b/src/plugins/position/simulator/CMakeLists.txt
new file mode 100644
index 00000000..64095bcf
--- /dev/null
+++ b/src/plugins/position/simulator/CMakeLists.txt
@@ -0,0 +1,27 @@
+# Generated from simulator.pro.
+
+#####################################################################
+## QGeoPositionInfoSourceFactorySimulator Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QGeoPositionInfoSourceFactorySimulator
+ OUTPUT_NAME qtposition_simulator
+ TYPE position
+ SOURCES
+ qgeopositioninfosource_simulator.cpp qgeopositioninfosource_simulator_p.h
+ qgeopositioninfosourcefactory_simulator.cpp qgeopositioninfosourcefactory_simulator.h
+ qgeosatelliteinfosource_simulator.cpp qgeosatelliteinfosource_simulator_p.h
+ qlocationconnection_simulator.cpp qlocationconnection_simulator_p.h
+ DEFINES
+ QT_SIMULATOR
+ INCLUDE_DIRECTORIES
+ ../../../positioning
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::Network
+ Qt::Positioning
+ simulator
+)
+
+#### Keys ignored in scope 1:.:.:simulator.pro:<TRUE>:
+# OTHER_FILES = "plugin.json"
diff --git a/src/plugins/position/winrt/CMakeLists.txt b/src/plugins/position/winrt/CMakeLists.txt
new file mode 100644
index 00000000..1f93cabd
--- /dev/null
+++ b/src/plugins/position/winrt/CMakeLists.txt
@@ -0,0 +1,28 @@
+# Generated from winrt.pro.
+
+#####################################################################
+## QGeoPositionInfoSourceFactoryWinRT Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QGeoPositionInfoSourceFactoryWinRT
+ OUTPUT_NAME qtposition_winrt
+ TYPE position
+ SOURCES
+ qgeopositioninfosource_winrt.cpp qgeopositioninfosource_winrt_p.h
+ qgeopositioninfosourcefactory_winrt.cpp qgeopositioninfosourcefactory_winrt.h
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::CorePrivate
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:winrt.pro:<TRUE>:
+# OTHER_FILES = "plugin.json"
+
+## Scopes:
+#####################################################################
+
+qt_internal_extend_target(QGeoPositionInfoSourceFactoryWinRT CONDITION MSVC AND NOT WINRT
+ PUBLIC_LIBRARIES
+ runtimeobject.lib
+)
diff --git a/src/positioning/CMakeLists.txt b/src/positioning/CMakeLists.txt
new file mode 100644
index 00000000..13aeef8f
--- /dev/null
+++ b/src/positioning/CMakeLists.txt
@@ -0,0 +1,67 @@
+# Generated from positioning.pro.
+
+#####################################################################
+## Positioning Module:
+#####################################################################
+
+qt_add_module(Positioning
+ PLUGIN_TYPES position
+ SOURCES
+ qclipperutils.cpp qclipperutils_p.h
+ qdoublematrix4x4.cpp qdoublematrix4x4_p.h
+ qdoublevector2d.cpp qdoublevector2d_p.h
+ qdoublevector3d.cpp qdoublevector3d_p.h
+ qgeoaddress.cpp qgeoaddress.h qgeoaddress_p.h
+ qgeoareamonitorinfo.cpp qgeoareamonitorinfo.h
+ qgeoareamonitorsource.cpp qgeoareamonitorsource.h
+ qgeocircle.cpp qgeocircle.h qgeocircle_p.h
+ qgeocoordinate.cpp qgeocoordinate.h qgeocoordinate_p.h
+ qgeocoordinateobject.cpp qgeocoordinateobject_p.h
+ qgeolocation.cpp qgeolocation.h qgeolocation_p.h
+ qgeopath.cpp qgeopath.h qgeopath_p.h
+ qgeopolygon.cpp qgeopolygon.h qgeopolygon_p.h
+ qgeopositioninfo.cpp qgeopositioninfo.h qgeopositioninfo_p.h
+ qgeopositioninfosource.cpp qgeopositioninfosource.h qgeopositioninfosource_p.h
+ qgeopositioninfosourcefactory.cpp qgeopositioninfosourcefactory.h
+ qgeorectangle.cpp qgeorectangle.h qgeorectangle_p.h
+ qgeosatelliteinfo.cpp qgeosatelliteinfo.h qgeosatelliteinfo_p.h
+ qgeosatelliteinfosource.cpp qgeosatelliteinfosource.h qgeosatelliteinfosource_p.h
+ qgeoshape.cpp qgeoshape.h qgeoshape_p.h
+ qlocationdata_simulator.cpp qlocationdata_simulator_p.h
+ qlocationutils.cpp qlocationutils_p.h
+ qnmeapositioninfosource.cpp qnmeapositioninfosource.h qnmeapositioninfosource_p.h
+ qpositioningglobal.h qpositioningglobal_p.h
+ qwebmercator.cpp qwebmercator_p.h
+ INCLUDE_DIRECTORIES
+ ../3rdparty/clip2tri
+ ../3rdparty/clipper
+ LIBRARIES
+ # Remove: L/lib
+ Qt::CorePrivate
+ Clip2Tri::Clip2Tri # special case
+ PUBLIC_LIBRARIES
+ Qt::Core
+ PRIVATE_MODULE_INTERFACE
+ Qt::CorePrivate
+)
+
+if(ANDROID)
+ set_property(TARGET Positioning APPEND PROPERTY QT_ANDROID_BUNDLED_JAR_DEPENDENCIES
+ jar/QtPositioning.jar:org.qtproject.qt5.android.positioning.QtPositioning
+ )
+ set_property(TARGET Positioning APPEND PROPERTY QT_ANDROID_LIB_DEPENDENCIES
+ plugins/position/libplugins_position_qtposition_android.so
+ )
+ set_property(TARGET Positioning APPEND PROPERTY QT_ANDROID_PERMISSIONS
+ android.permission.ACCESS_FINE_LOCATION
+ )
+endif()
+
+#### Keys ignored in scope 1:.:.:positioning.pro:<TRUE>:
+# ANDROID_FEATURES = "android.hardware.location.gps"
+# MODULE_WINRT_CAPABILITIES_DEVICE = "location"
+# OTHER_FILES = "configure.json" "doc/src/*.qdoc" "doc/src/plugins/*.qdoc"
+qt_add_docs(Positioning
+ doc/qtpositioning.qdocconf
+)
+
diff --git a/src/positioning/configure.cmake b/src/positioning/configure.cmake
new file mode 100644
index 00000000..979c1432
--- /dev/null
+++ b/src/positioning/configure.cmake
@@ -0,0 +1,28 @@
+# begin special case
+
+#### Libraries
+
+qt_find_package(Gypsy PROVIDED_TARGETS Gypsy::Gypsy)
+qt_find_package(Gconf PROVIDED_TARGETS Gconf::Gconf)
+
+#### Tests
+
+if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/winrt/CMakeLists.txt")
+ qt_config_compile_test("winrt_geolocation"
+ LABEL "WinRT geolocation"
+ PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/winrt")
+endif()
+
+#### Features
+
+qt_feature("gypsy" PUBLIC
+ LABEL "Gypsy - A GPS Multiplexing Daemon"
+ CONDITION Gypsy_FOUND AND Gconf_FOUND
+)
+
+qt_feature("winrt_geolocation" PRIVATE
+ LABEL "WinRT geolocation API"
+ CONDITION WIN32 AND TEST_winrt_geolocation
+)
+
+# end special case
diff --git a/src/positioningquick/CMakeLists.txt b/src/positioningquick/CMakeLists.txt
new file mode 100644
index 00000000..163346a2
--- /dev/null
+++ b/src/positioningquick/CMakeLists.txt
@@ -0,0 +1,31 @@
+# Generated from positioningquick.pro.
+
+#####################################################################
+## PositioningQuick Module:
+#####################################################################
+
+file(GLOB SOURCES "*.cpp")
+file(GLOB HEADERS "*.h")
+
+qt_add_module(PositioningQuick
+ SOURCES
+ ${SOURCES}
+ ${HEADERS}
+ INCLUDE_DIRECTORIES
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ LIBRARIES
+ Qt::CorePrivate
+ Qt::PositioningPrivate
+ Qt::QmlPrivate
+ Qt::QuickPrivate
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::Positioning
+ Qt::Qml
+ Qt::Quick
+ PRIVATE_MODULE_INTERFACE
+ Qt::CorePrivate
+ Qt::PositioningPrivate
+ Qt::QmlPrivate
+ Qt::QuickPrivate
+)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 00000000..22141371
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from tests.pro.
+
+if(QT_BUILD_STANDALONE_TESTS)
+ # Add qt_find_package calls for extra dependencies that need to be found when building
+ # the standalone tests here.
+endif()
+qt_build_tests()
diff --git a/tests/applications/positioning_backend/CMakeLists.txt b/tests/applications/positioning_backend/CMakeLists.txt
new file mode 100644
index 00000000..68fd75c4
--- /dev/null
+++ b/tests/applications/positioning_backend/CMakeLists.txt
@@ -0,0 +1,28 @@
+# Generated from positioning_backend.pro.
+
+#####################################################################
+## posbackendtesting Binary:
+#####################################################################
+
+qt_add_executable(posbackendtesting
+ GUI
+ SOURCES
+ logwidget.cpp logwidget.h
+ main.cpp
+ widget.cpp widget.h widget.ui
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+ Qt::Widgets
+ ENABLE_AUTOGEN_TOOLS
+ uic
+)
+
+#### Keys ignored in scope 1:.:.:positioning_backend.pro:<TRUE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:.:positioning_backend.pro:WINRT:
+# WINRT_MANIFEST.capabilities_device = "location"
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
new file mode 100644
index 00000000..ab6de00f
--- /dev/null
+++ b/tests/auto/CMakeLists.txt
@@ -0,0 +1,83 @@
+# Generated from auto.pro.
+
+add_subdirectory(doublevectors)
+add_subdirectory(qgeoaddress)
+add_subdirectory(qgeoshape)
+add_subdirectory(qgeorectangle)
+add_subdirectory(qgeocircle)
+add_subdirectory(qgeopath)
+add_subdirectory(qgeopolygon)
+add_subdirectory(qgeocoordinate)
+add_subdirectory(qgeolocation)
+add_subdirectory(qgeopositioninfo)
+add_subdirectory(qgeosatelliteinfo)
+# TODO: enable location tests later!
+# if(TARGET Qt::Location)
+# add_subdirectory(geotestplugin)
+# add_subdirectory(qplace)
+# add_subdirectory(qplaceattribute)
+# add_subdirectory(qplacecategory)
+# add_subdirectory(qplacecontactdetail)
+# add_subdirectory(qplacecontentrequest)
+# add_subdirectory(qplacedetailsreply)
+# add_subdirectory(qplaceeditorial)
+# add_subdirectory(qplacematchreply)
+# add_subdirectory(qplacematchrequest)
+# add_subdirectory(qplaceimage)
+# add_subdirectory(qplaceratings)
+# add_subdirectory(qplaceresult)
+# add_subdirectory(qproposedsearchresult)
+# add_subdirectory(qplacereply)
+# add_subdirectory(qplacereview)
+# add_subdirectory(qplacesearchrequest)
+# add_subdirectory(qplacesupplier)
+# add_subdirectory(qplacesearchresult)
+# add_subdirectory(qplacesearchreply)
+# add_subdirectory(qplacesearchsuggestionreply)
+# add_subdirectory(qplaceuser)
+# add_subdirectory(qgeocodingmanagerplugins)
+# add_subdirectory(qgeocameracapabilities)
+# add_subdirectory(qgeocameradata)
+# add_subdirectory(qgeocodereply)
+# add_subdirectory(qgeomaneuver)
+# add_subdirectory(qgeotiledmapscene)
+# add_subdirectory(qgeoroute)
+# add_subdirectory(qgeoroutereply)
+# add_subdirectory(qgeorouterequest)
+# add_subdirectory(qgeoroutesegment)
+# add_subdirectory(qgeoroutingmanagerplugins)
+# add_subdirectory(qgeotilespec)
+# add_subdirectory(qgeoroutexmlparser)
+# add_subdirectory(maptype)
+# add_subdirectory(qgeocameratiles)
+# add_subdirectory(qgeojson)
+# endif()
+# if(TARGET Qt::Location AND NOT ANDROID)
+# add_subdirectory(qplacemanager)
+# add_subdirectory(qplacemanager_nokia)
+# add_subdirectory(qplacemanager_unsupported)
+# add_subdirectory(placesplugin_unsupported)
+# add_subdirectory(cmake)
+# add_subdirectory(qmlinterface)
+# add_subdirectory(qgeoserviceprovider)
+# add_subdirectory(qgeoroutingmanager)
+# add_subdirectory(nokia_services)
+# add_subdirectory(qgeocodingmanager)
+# add_subdirectory(qgeotiledmap)
+# endif()
+# if(TARGET Qt::Location AND TARGET Qt::Quick AND NOT ANDROID)
+# add_subdirectory(declarative_geoshape)
+# add_subdirectory(declarative_core)
+# endif()
+# if(TARGET Qt::Location AND TARGET Qt::Quick AND NOT ANDROID AND NOT APPLE)
+# add_subdirectory(declarative_ui)
+# endif()
+if(NOT ANDROID)
+ add_subdirectory(positionplugin)
+ add_subdirectory(positionpluginV1)
+ add_subdirectory(positionplugintest)
+ add_subdirectory(qgeoareamonitor)
+ add_subdirectory(qgeopositioninfosource)
+ add_subdirectory(qgeosatelliteinfosource)
+ add_subdirectory(qnmeapositioninfosource)
+endif()
diff --git a/tests/auto/doublevectors/CMakeLists.txt b/tests/auto/doublevectors/CMakeLists.txt
new file mode 100644
index 00000000..93e37f24
--- /dev/null
+++ b/tests/auto/doublevectors/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from doublevectors.pro.
+
+#####################################################################
+## tst_doublevectors Test:
+#####################################################################
+
+qt_add_test(tst_doublevectors
+ SOURCES
+ tst_doublevectors.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::PositioningPrivate
+)
+
+#### Keys ignored in scope 1:.:.:doublevectors.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/positionplugin/CMakeLists.txt b/tests/auto/positionplugin/CMakeLists.txt
new file mode 100644
index 00000000..1f93696e
--- /dev/null
+++ b/tests/auto/positionplugin/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from positionplugin.pro.
+
+#####################################################################
+## QGeoPositionInfoSourceFactoryTest Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QGeoPositionInfoSourceFactoryTest
+ OUTPUT_NAME qtposition_testplugin
+ TYPE position
+ DEFAULT_IF FALSE
+ SOURCES
+ plugin.cpp
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::Gui
+ Qt::PositioningPrivate
+)
+
+#### Keys ignored in scope 1:.:.:positionplugin.pro:<TRUE>:
+# OTHER_FILES = "plugin.json"
+# PLUGIN_EXTENDS = "-"
diff --git a/tests/auto/positionpluginV1/CMakeLists.txt b/tests/auto/positionpluginV1/CMakeLists.txt
new file mode 100644
index 00000000..95cbe5b8
--- /dev/null
+++ b/tests/auto/positionpluginV1/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Generated from positionpluginV1.pro.
+
+#####################################################################
+## QGeoPositionInfoSourceFactoryTestV1 Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QGeoPositionInfoSourceFactoryTestV1
+ OUTPUT_NAME qtposition_testpluginv1
+ TYPE position
+ DEFAULT_IF FALSE
+ SOURCES
+ plugin.cpp
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::Gui
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:positionpluginV1.pro:<TRUE>:
+# OTHER_FILES = "plugin.json"
+# PLUGIN_EXTENDS = "-"
diff --git a/tests/auto/positionplugintest/CMakeLists.txt b/tests/auto/positionplugintest/CMakeLists.txt
new file mode 100644
index 00000000..8d0fc370
--- /dev/null
+++ b/tests/auto/positionplugintest/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from positionplugintest.pro.
+
+#####################################################################
+## tst_positionplugin Test:
+#####################################################################
+
+qt_add_test(tst_positionplugin
+ SOURCES
+ tst_positionplugin.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:positionplugintest.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/qgeoaddress/CMakeLists.txt b/tests/auto/qgeoaddress/CMakeLists.txt
new file mode 100644
index 00000000..b4497f11
--- /dev/null
+++ b/tests/auto/qgeoaddress/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from qgeoaddress.pro.
+
+#####################################################################
+## tst_qgeoaddress Test:
+#####################################################################
+
+qt_add_test(tst_qgeoaddress
+ SOURCES
+ tst_qgeoaddress.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qgeoaddress.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/qgeoareamonitor/CMakeLists.txt b/tests/auto/qgeoareamonitor/CMakeLists.txt
new file mode 100644
index 00000000..e1c68731
--- /dev/null
+++ b/tests/auto/qgeoareamonitor/CMakeLists.txt
@@ -0,0 +1,18 @@
+# Generated from qgeoareamonitor.pro.
+
+#####################################################################
+## tst_qgeoareamonitor Test:
+#####################################################################
+
+qt_add_test(tst_qgeoareamonitor
+ SOURCES
+ logfilepositionsource.cpp logfilepositionsource.h
+ tst_qgeoareamonitor.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qgeoareamonitor.pro:<TRUE>:
+# OTHER_FILES = "*.txt"
+# TEMPLATE = "app"
diff --git a/tests/auto/qgeocircle/CMakeLists.txt b/tests/auto/qgeocircle/CMakeLists.txt
new file mode 100644
index 00000000..c82f2836
--- /dev/null
+++ b/tests/auto/qgeocircle/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from qgeocircle.pro.
+
+#####################################################################
+## tst_qgeocircle Test:
+#####################################################################
+
+qt_add_test(tst_qgeocircle
+ SOURCES
+ tst_qgeocircle.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qgeocircle.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/qgeocoordinate/CMakeLists.txt b/tests/auto/qgeocoordinate/CMakeLists.txt
new file mode 100644
index 00000000..69232cf8
--- /dev/null
+++ b/tests/auto/qgeocoordinate/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from qgeocoordinate.pro.
+
+#####################################################################
+## tst_qgeocoordinate Test:
+#####################################################################
+
+qt_add_test(tst_qgeocoordinate
+ SOURCES
+ ../utils/qlocationtestutils.cpp ../utils/qlocationtestutils_p.h
+ tst_qgeocoordinate.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
diff --git a/tests/auto/qgeolocation/CMakeLists.txt b/tests/auto/qgeolocation/CMakeLists.txt
new file mode 100644
index 00000000..af7866a2
--- /dev/null
+++ b/tests/auto/qgeolocation/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from qgeolocation.pro.
+
+#####################################################################
+## tst_qgeolocation Test:
+#####################################################################
+
+qt_add_test(tst_qgeolocation
+ SOURCES
+ ../utils/qlocationtestutils.cpp ../utils/qlocationtestutils_p.h
+ tst_qgeolocation.cpp tst_qgeolocation.h
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
diff --git a/tests/auto/qgeopath/CMakeLists.txt b/tests/auto/qgeopath/CMakeLists.txt
new file mode 100644
index 00000000..5cb74a97
--- /dev/null
+++ b/tests/auto/qgeopath/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from qgeopath.pro.
+
+#####################################################################
+## tst_qgeopath Test:
+#####################################################################
+
+qt_add_test(tst_qgeopath
+ SOURCES
+ tst_qgeopath.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qgeopath.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/qgeopolygon/CMakeLists.txt b/tests/auto/qgeopolygon/CMakeLists.txt
new file mode 100644
index 00000000..a594ea31
--- /dev/null
+++ b/tests/auto/qgeopolygon/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from qgeopolygon.pro.
+
+#####################################################################
+## tst_qgeopolygon Test:
+#####################################################################
+
+qt_add_test(tst_qgeopolygon
+ SOURCES
+ tst_qgeopolygon.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qgeopolygon.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/qgeopositioninfo/CMakeLists.txt b/tests/auto/qgeopositioninfo/CMakeLists.txt
new file mode 100644
index 00000000..2db0b8c0
--- /dev/null
+++ b/tests/auto/qgeopositioninfo/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from qgeopositioninfo.pro.
+
+#####################################################################
+## tst_qgeopositioninfo Test:
+#####################################################################
+
+qt_add_test(tst_qgeopositioninfo
+ SOURCES
+ tst_qgeopositioninfo.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qgeopositioninfo.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/qgeopositioninfosource/CMakeLists.txt b/tests/auto/qgeopositioninfosource/CMakeLists.txt
new file mode 100644
index 00000000..c05101dc
--- /dev/null
+++ b/tests/auto/qgeopositioninfosource/CMakeLists.txt
@@ -0,0 +1,19 @@
+# Generated from qgeopositioninfosource.pro.
+
+#####################################################################
+## tst_qgeopositioninfosource Test:
+#####################################################################
+
+qt_add_test(tst_qgeopositioninfosource
+ SOURCES
+ ../utils/qlocationtestutils.cpp ../utils/qlocationtestutils_p.h
+ testqgeopositioninfosource.cpp testqgeopositioninfosource_p.h
+ tst_qgeopositioninfosource.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qgeopositioninfosource.pro:<TRUE>:
+# TEMPLATE = "app"
+# testcase.timeout = "400"
diff --git a/tests/auto/qgeorectangle/CMakeLists.txt b/tests/auto/qgeorectangle/CMakeLists.txt
new file mode 100644
index 00000000..ce66c70e
--- /dev/null
+++ b/tests/auto/qgeorectangle/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from qgeorectangle.pro.
+
+#####################################################################
+## tst_qgeorectangle Test:
+#####################################################################
+
+qt_add_test(tst_qgeorectangle
+ SOURCES
+ tst_qgeorectangle.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qgeorectangle.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/qgeosatelliteinfo/CMakeLists.txt b/tests/auto/qgeosatelliteinfo/CMakeLists.txt
new file mode 100644
index 00000000..4818b52c
--- /dev/null
+++ b/tests/auto/qgeosatelliteinfo/CMakeLists.txt
@@ -0,0 +1,16 @@
+# Generated from qgeosatelliteinfo.pro.
+
+#####################################################################
+## tst_qgeosatelliteinfo Test:
+#####################################################################
+
+qt_add_test(tst_qgeosatelliteinfo
+ SOURCES
+ tst_qgeosatelliteinfo.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qgeosatelliteinfo.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/qgeosatelliteinfosource/CMakeLists.txt b/tests/auto/qgeosatelliteinfosource/CMakeLists.txt
new file mode 100644
index 00000000..eb12532f
--- /dev/null
+++ b/tests/auto/qgeosatelliteinfosource/CMakeLists.txt
@@ -0,0 +1,22 @@
+# Generated from qgeosatelliteinfosource.pro.
+
+#####################################################################
+## tst_qgeosatelliteinfosource Binary:
+#####################################################################
+
+qt_add_executable(tst_qgeosatelliteinfosource
+ SOURCES
+ ../utils/qlocationtestutils.cpp ../utils/qlocationtestutils_p.h
+ testqgeosatelliteinfosource.cpp testqgeosatelliteinfosource_p.h
+ tst_qgeosatelliteinfosource.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+ Qt::Test
+)
+
+#### Keys ignored in scope 1:.:.:qgeosatelliteinfosource.pro:<TRUE>:
+# TEMPLATE = "app"
+
+## Scopes:
+#####################################################################
diff --git a/tests/auto/qgeoshape/CMakeLists.txt b/tests/auto/qgeoshape/CMakeLists.txt
new file mode 100644
index 00000000..c6de1a79
--- /dev/null
+++ b/tests/auto/qgeoshape/CMakeLists.txt
@@ -0,0 +1,14 @@
+# Generated from qgeoshape.pro.
+
+#####################################################################
+## tst_qgeoshape Binary:
+#####################################################################
+
+qt_add_executable(tst_qgeoshape
+ SOURCES
+ tst_qgeoshape.cpp
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Positioning
+ Qt::Test
+)
diff --git a/tests/auto/qnmeapositioninfosource/CMakeLists.txt b/tests/auto/qnmeapositioninfosource/CMakeLists.txt
new file mode 100644
index 00000000..6ac0e05c
--- /dev/null
+++ b/tests/auto/qnmeapositioninfosource/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Generated from qnmeapositioninfosource.pro.
+
+add_subdirectory(dummynmeapositioninfosource)
+add_subdirectory(qnmeapositioninfosource_realtime)
+add_subdirectory(qnmeapositioninfosource_simulation)
+add_subdirectory(qnmeapositioninfosource_realtime_generic)
+add_subdirectory(qnmeapositioninfosource_simulation_generic)
diff --git a/tests/auto/qnmeapositioninfosource/dummynmeapositioninfosource/CMakeLists.txt b/tests/auto/qnmeapositioninfosource/dummynmeapositioninfosource/CMakeLists.txt
new file mode 100644
index 00000000..cb24e48c
--- /dev/null
+++ b/tests/auto/qnmeapositioninfosource/dummynmeapositioninfosource/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Generated from dummynmeapositioninfosource.pro.
+
+#####################################################################
+## tst_dummynmeapositioninfosource Test:
+#####################################################################
+
+qt_add_test(tst_dummynmeapositioninfosource
+ SOURCES
+ ../../qgeopositioninfosource/testqgeopositioninfosource.cpp ../../qgeopositioninfosource/testqgeopositioninfosource_p.h
+ ../../utils/qlocationtestutils.cpp ../../utils/qlocationtestutils_p.h
+ ../qnmeapositioninfosourceproxyfactory.cpp ../qnmeapositioninfosourceproxyfactory.h
+ tst_dummynmeapositioninfosource.cpp
+ DEFINES
+ QT_DISABLE_DEPRECATED_BEFORE=0
+ INCLUDE_DIRECTORIES
+ ..
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Network
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:dummynmeapositioninfosource.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_realtime/CMakeLists.txt b/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_realtime/CMakeLists.txt
new file mode 100644
index 00000000..4954a1e0
--- /dev/null
+++ b/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_realtime/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from qnmeapositioninfosource_realtime.pro.
+
+#####################################################################
+## tst_qnmeapositioninfosource_realtime Test:
+#####################################################################
+
+qt_add_test(tst_qnmeapositioninfosource_realtime
+ SOURCES
+ ../../qgeopositioninfosource/testqgeopositioninfosource.cpp ../../qgeopositioninfosource/testqgeopositioninfosource_p.h
+ ../../utils/qlocationtestutils.cpp ../../utils/qlocationtestutils_p.h
+ ../qnmeapositioninfosourceproxyfactory.cpp ../qnmeapositioninfosourceproxyfactory.h
+ ../tst_qnmeapositioninfosource.cpp ../tst_qnmeapositioninfosource.h
+ tst_qnmeapositioninfosource_realtime.cpp
+ DEFINES
+ QT_DISABLE_DEPRECATED_BEFORE=0
+ INCLUDE_DIRECTORIES
+ ..
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Network
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qnmeapositioninfosource_realtime.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_realtime_generic/CMakeLists.txt b/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_realtime_generic/CMakeLists.txt
new file mode 100644
index 00000000..abc81968
--- /dev/null
+++ b/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_realtime_generic/CMakeLists.txt
@@ -0,0 +1,26 @@
+# Generated from qnmeapositioninfosource_realtime_generic.pro.
+
+#####################################################################
+## tst_qnmeapositioninfosource_realtime_generic Test:
+#####################################################################
+
+qt_add_test(tst_qnmeapositioninfosource_realtime_generic
+ SOURCES
+ ../../qgeopositioninfosource/testqgeopositioninfosource.cpp ../../qgeopositioninfosource/testqgeopositioninfosource_p.h
+ ../../utils/qlocationtestutils.cpp ../../utils/qlocationtestutils_p.h
+ ../qnmeapositioninfosourceproxyfactory.cpp ../qnmeapositioninfosourceproxyfactory.h
+ ../tst_qnmeapositioninfosource.cpp ../tst_qnmeapositioninfosource.h
+ tst_qnmeapositioninfosource_realtime_generic.cpp
+ DEFINES
+ QT_DISABLE_DEPRECATED_BEFORE=0
+ INCLUDE_DIRECTORIES
+ ..
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Network
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qnmeapositioninfosource_realtime_generic.pro:<TRUE>:
+# TEMPLATE = "app"
+# testcase.timeout = "400"
diff --git a/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_simulation/CMakeLists.txt b/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_simulation/CMakeLists.txt
new file mode 100644
index 00000000..ca2f9255
--- /dev/null
+++ b/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_simulation/CMakeLists.txt
@@ -0,0 +1,25 @@
+# Generated from qnmeapositioninfosource_simulation.pro.
+
+#####################################################################
+## tst_qnmeapositioninfosource_simulation Test:
+#####################################################################
+
+qt_add_test(tst_qnmeapositioninfosource_simulation
+ SOURCES
+ ../../qgeopositioninfosource/testqgeopositioninfosource.cpp ../../qgeopositioninfosource/testqgeopositioninfosource_p.h
+ ../../utils/qlocationtestutils.cpp ../../utils/qlocationtestutils_p.h
+ ../qnmeapositioninfosourceproxyfactory.cpp ../qnmeapositioninfosourceproxyfactory.h
+ ../tst_qnmeapositioninfosource.cpp ../tst_qnmeapositioninfosource.h
+ tst_qnmeapositioninfosource_simulation.cpp
+ DEFINES
+ QT_DISABLE_DEPRECATED_BEFORE=0
+ INCLUDE_DIRECTORIES
+ ..
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Network
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qnmeapositioninfosource_simulation.pro:<TRUE>:
+# TEMPLATE = "app"
diff --git a/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_simulation_generic/CMakeLists.txt b/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_simulation_generic/CMakeLists.txt
new file mode 100644
index 00000000..524f52dc
--- /dev/null
+++ b/tests/auto/qnmeapositioninfosource/qnmeapositioninfosource_simulation_generic/CMakeLists.txt
@@ -0,0 +1,31 @@
+# Generated from qnmeapositioninfosource_simulation_generic.pro.
+
+#####################################################################
+## tst_qnmeapositioninfosource_simulation_generic Test:
+#####################################################################
+
+# special case begin
+
+# Renamed the target due to problems with the maximum full path on
+# Windows systems (which is 250 characters only)
+qt_add_test(tst_qnmeaposinfosource_sim_generic
+# special case end
+ SOURCES
+ ../../qgeopositioninfosource/testqgeopositioninfosource.cpp ../../qgeopositioninfosource/testqgeopositioninfosource_p.h
+ ../../utils/qlocationtestutils.cpp ../../utils/qlocationtestutils_p.h
+ ../qnmeapositioninfosourceproxyfactory.cpp ../qnmeapositioninfosourceproxyfactory.h
+ ../tst_qnmeapositioninfosource.cpp ../tst_qnmeapositioninfosource.h
+ tst_qnmeapositioninfosource_simulation_generic.cpp
+ DEFINES
+ QT_DISABLE_DEPRECATED_BEFORE=0
+ INCLUDE_DIRECTORIES
+ ..
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Network
+ Qt::Positioning
+)
+
+#### Keys ignored in scope 1:.:.:qnmeapositioninfosource_simulation_generic.pro:<TRUE>:
+# TEMPLATE = "app"
+# testcase.timeout = "400"
diff --git a/tests/manual/mapitems_backends/CMakeLists.txt b/tests/manual/mapitems_backends/CMakeLists.txt
new file mode 100644
index 00000000..8f2f6fd7
--- /dev/null
+++ b/tests/manual/mapitems_backends/CMakeLists.txt
@@ -0,0 +1,49 @@
+# Generated from mapitems_backends.pro.
+
+#####################################################################
+## mapitems_backends Binary:
+#####################################################################
+
+qt_add_manual_test(mapitems_backends
+ GUI
+ SOURCES
+ main.cpp
+ DEFINES
+ QT_DEPRECATED_WARNINGS
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Quick
+)
+
+# Resources:
+set_source_files_properties("../mappolyline_tester/LongPolyline.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "LongPolyline.qml"
+)
+set(qml_resource_files
+ "../mappolyline_tester/LongPolyline.qml"
+ "main.qml"
+)
+
+qt_add_resource(mapitems_backends "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:mapitems_backends.pro:<TRUE>:
+# QML_DESIGNER_IMPORT_PATH = <EMPTY>
+# QML_IMPORT_PATH = <EMPTY>
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:.:mapitems_backends.pro:QNX:
+# target.path = "/tmp/$${TARGET}/bin"
+
+#### Keys ignored in scope 4:.:.:mapitems_backends.pro:UNIX AND NOT ANDROID:
+# target.path = "/opt/$${TARGET}/bin"
+
+#### Keys ignored in scope 5:.:.:mapitems_backends.pro:NOT target.path_ISEMPTY:
+# INSTALLS = "target"
diff --git a/tests/manual/mapobjects_tester/CMakeLists.txt b/tests/manual/mapobjects_tester/CMakeLists.txt
new file mode 100644
index 00000000..24e42a45
--- /dev/null
+++ b/tests/manual/mapobjects_tester/CMakeLists.txt
@@ -0,0 +1,49 @@
+# Generated from mapobjects_tester.pro.
+
+#####################################################################
+## mapobjects_tester Binary:
+#####################################################################
+
+qt_add_manual_test(mapobjects_tester
+ GUI
+ SOURCES
+ main.cpp
+ DEFINES
+ QT_DEPRECATED_WARNINGS
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Quick
+)
+
+# Resources:
+set_source_files_properties("../mappolyline_tester/LongPolyline.qml"
+ PROPERTIES QT_RESOURCE_ALIAS "LongPolyline.qml"
+)
+set(qml_resource_files
+ "../mappolyline_tester/LongPolyline.qml"
+ "main.qml"
+)
+
+qt_add_resource(mapobjects_tester "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:mapobjects_tester.pro:<TRUE>:
+# QML_DESIGNER_IMPORT_PATH = <EMPTY>
+# QML_IMPORT_PATH = <EMPTY>
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:.:mapobjects_tester.pro:QNX:
+# target.path = "/tmp/$${TARGET}/bin"
+
+#### Keys ignored in scope 4:.:.:mapobjects_tester.pro:UNIX AND NOT ANDROID:
+# target.path = "/opt/$${TARGET}/bin"
+
+#### Keys ignored in scope 5:.:.:mapobjects_tester.pro:NOT target.path_ISEMPTY:
+# INSTALLS = "target"
diff --git a/tests/manual/mappolyline_tester/CMakeLists.txt b/tests/manual/mappolyline_tester/CMakeLists.txt
new file mode 100644
index 00000000..f889453c
--- /dev/null
+++ b/tests/manual/mappolyline_tester/CMakeLists.txt
@@ -0,0 +1,46 @@
+# Generated from mappolyline_tester.pro.
+
+#####################################################################
+## mappolyline_tester Binary:
+#####################################################################
+
+qt_add_manual_test(mappolyline_tester
+ GUI
+ SOURCES
+ main.cpp
+ DEFINES
+ QT_DEPRECATED_WARNINGS
+ PUBLIC_LIBRARIES
+ Qt::Gui
+ Qt::Quick
+)
+
+# Resources:
+set(qml_resource_files
+ "LongPolyline.qml"
+ "main.qml"
+)
+
+qt_add_resource(mappolyline_tester "qml"
+ PREFIX
+ "/"
+ FILES
+ ${qml_resource_files}
+)
+
+
+#### Keys ignored in scope 1:.:.:mappolyline_tester.pro:<TRUE>:
+# QML_DESIGNER_IMPORT_PATH = <EMPTY>
+# QML_IMPORT_PATH = <EMPTY>
+
+## Scopes:
+#####################################################################
+
+#### Keys ignored in scope 2:.:.:mappolyline_tester.pro:QNX:
+# target.path = "/tmp/$${TARGET}/bin"
+
+#### Keys ignored in scope 4:.:.:mappolyline_tester.pro:UNIX AND NOT ANDROID:
+# target.path = "/opt/$${TARGET}/bin"
+
+#### Keys ignored in scope 5:.:.:mappolyline_tester.pro:NOT target.path_ISEMPTY:
+# INSTALLS = "target"