summaryrefslogtreecommitdiffstats
path: root/src/sensors
diff options
context:
space:
mode:
Diffstat (limited to 'src/sensors')
-rw-r--r--src/sensors/configure.cmake16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/sensors/configure.cmake b/src/sensors/configure.cmake
index 06e0de59..7779bf09 100644
--- a/src/sensors/configure.cmake
+++ b/src/sensors/configure.cmake
@@ -13,7 +13,11 @@ endif()
#### Tests
-
+if (WIN32 AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/winrt/CMakeLists.txt")
+ qt_config_compile_test("winrt_sensors"
+ LABEL "WinRT sensors"
+ PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../config.tests/winrt")
+endif()
#### Features
@@ -24,6 +28,11 @@ qt_feature("sensorfw" PRIVATE
)
# special case end
+qt_feature("winrt_sensors" PRIVATE
+ LABEL "WinRT sensors backend"
+ CONDITION WIN32 AND TEST_winrt_sensors
+)
+
qt_configure_add_summary_section(NAME "Qt Sensors")
if (LINUX)
# At the moment there is no Qt6 version of sensorfw, and while the
@@ -35,4 +44,9 @@ if (LINUX)
qt_configure_add_summary_entry(ARGS "sensorfw_enabled_with_cmake")
qt_configure_add_report(MESSAGE "SensorFW support currently not enabled with cmake")
endif()
+
+if (WIN32)
+ qt_configure_add_summary_entry(ARGS "winrt_sensors")
+endif()
+
qt_configure_end_summary_section() # end of "Qt Sensors" section