From 84cd882daf1afab59596f2f27db5aad5ce9b8f6b Mon Sep 17 00:00:00 2001 From: Juha Vuolle Date: Tue, 20 Apr 2021 09:09:59 +0300 Subject: Compile-config test for winrt While winrt as a "windows phone" is not supported anymore, the APIs are available on windows and can be supported where applicable (bluetooth, positioning, sensors, ...). This commit adds a configuration tests for the presence of these headers and libraries. Task-number: QTBUG-92502 Change-Id: Ia6dcb0a6b8ecdbcf1d1bcf79e42f95ace75f6657 Reviewed-by: Alexandru Croitor --- src/plugins/sensors/winrt/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/plugins/sensors/winrt/CMakeLists.txt') diff --git a/src/plugins/sensors/winrt/CMakeLists.txt b/src/plugins/sensors/winrt/CMakeLists.txt index 2099547e..cd8191e8 100644 --- a/src/plugins/sensors/winrt/CMakeLists.txt +++ b/src/plugins/sensors/winrt/CMakeLists.txt @@ -19,7 +19,11 @@ qt_internal_add_plugin(WinRtSensorPlugin Qt::Sensors LIBRARIES Qt::CorePrivate - runtimeobject +) + +qt_internal_extend_target(WinRtSensorPlugin CONDITION MSVC + PUBLIC_LIBRARIES + runtimeobject.lib ) #### Keys ignored in scope 1:.:.:winrt.pro:: -- cgit v1.2.3