Revision control

Copy as Markdown

# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
cmake_minimum_required(VERSION 3.16)
project(tst_declarative_satellitesource LANGUAGES CXX)
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
endif()
file(GLOB_RECURSE test_data_glob
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
*.qml)
list(APPEND test_data ${test_data_glob})
qt_internal_add_test(tst_declarative_satellitesource
QMLTEST
SOURCES
main.cpp
LIBRARIES
Qt::Positioning
Qt::Qml
Qt::Quick
TESTDATA
${test_data}
)
qt_add_qml_module(tst_declarative_satellitesource
URI PositioningTest.SatelliteSource
VERSION 1.0
QML_FILES
tst_satellite.qml
tst_satellitesource.qml
NO_RESOURCE_TARGET_PATH
)
add_dependencies(tst_declarative_satellitesource
QGeoSatelliteInfoSourceTestPlugin DummyPluginForTestsFactoryPlugin)
if(ANDROID)
# we have two plugins as dependencies, but they are in the same dir
set_target_properties(tst_declarative_satellitesource PROPERTIES
QT_ANDROID_EXTRA_PLUGINS "$<TARGET_FILE_DIR:QGeoSatelliteInfoSourceTestPlugin>"
)
endif()