summaryrefslogtreecommitdiffstats
path: root/tests/manual/sensor_explorer_qml/CMakeLists.txt
blob: e68fce62a86560a02aeb699f4d2ebcd4d4ca14d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

cmake_minimum_required(VERSION 3.16)
project(tst_manual_sensor_explorer_qml LANGUAGES CXX)

set(CMAKE_AUTOMOC ON)

find_package(Qt6 REQUIRED COMPONENTS Qml Quick Sensors)

qt_add_executable(tst_manual_sensor_explorer_qml
    main.cpp
    sensormodels.cpp sensormodels.h
)

set_target_properties(tst_manual_sensor_explorer_qml PROPERTIES
    WIN32_EXECUTABLE TRUE
    MACOSX_BUNDLE TRUE
)

target_link_libraries(tst_manual_sensor_explorer_qml PUBLIC
    Qt::Qml
    Qt::Quick
    Qt::Sensors
)

qt_add_qml_module(tst_manual_sensor_explorer_qml
    URI SensorModels
    VERSION 1.0
    QML_FILES sensor_explorer.qml
    NO_RESOURCE_TARGET_PATH
)