-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
38 lines (33 loc) · 1.29 KB
/
CMakeLists.txt
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
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.16)
project(qtsensors_sensorfw VERSION 1.0 LANGUAGES C CXX)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt6 REQUIRED COMPONENTS Core DBus Network Sensors)
find_package(PkgConfig)
pkg_check_modules(SENSORFW sensord-qt6 REQUIRED IMPORTED_TARGET)
qt_add_library(qtsensors_sensorfw MODULE
main.cpp
sensorfwaccelerometer.cpp sensorfwaccelerometer.h
sensorfwals.cpp sensorfwals.h
sensorfwcompass.cpp sensorfwcompass.h
sensorfwgyroscope.cpp sensorfwgyroscope.h
sensorfwirproximitysensor.cpp sensorfwirproximitysensor.h
sensorfwlidsensor.cpp sensorfwlidsensor.h
sensorfwlightsensor.cpp sensorfwlightsensor.h
sensorfwmagnetometer.cpp sensorfwmagnetometer.h
sensorfworientationsensor.cpp sensorfworientationsensor.h
sensorfwproximitysensor.cpp sensorfwproximitysensor.h
sensorfwrotationsensor.cpp sensorfwrotationsensor.h
sensorfwsensorbase.cpp sensorfwsensorbase.h
sensorfwtapsensor.cpp sensorfwtapsensor.h
)
target_link_libraries(qtsensors_sensorfw PUBLIC
Qt::Core
Qt::DBus
Qt::Network
Qt::Sensors
PkgConfig::SENSORFW
)
install(TARGETS qtsensors_sensorfw
LIBRARY DESTINATION ${INSTALL_PLUGINSDIR}/sensors/)
install(FILES Sensors.conf DESTINATION /etc/xdg/QtProject/)