blob: 9cc90a277c6d459b5e77d260844d54cab408f2ba (
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
|
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
cmake_minimum_required(VERSION 3.16)
project(sensorsdocsnippet LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt6 COMPONENTS Core Sensors)
qt_add_executable(sensorsdocsnippet
creating.cpp
main.cpp
mybackend.h
plugin.cpp
)
target_link_libraries(sensorsdocsnippet PUBLIC
Qt::Sensors
)
if (GCC AND UNIX)
target_link_libraries(sensorsdocsnippet PUBLIC
rdynamic
log
)
endif()
|