Add bluetooth example app Qt::Gui linkage on iOS

Fixes: QTBUG-101720
Pick-to: 6.3
Change-Id: I5d6e1e51ef73521390a3903b8ff1f225ea5dfa83
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Juha Vuolle 2022-03-17 07:47:57 +02:00
parent 74cf0ee764
commit d4b1a61229
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/bluetooth/heartrate-server")
find_package(Qt6 REQUIRED COMPONENTS Bluetooth Core)
if(ANDROID)
if(ANDROID OR IOS)
find_package(Qt6 REQUIRED COMPONENTS Gui)
endif()
@ -29,7 +29,7 @@ target_link_libraries(heartrate-server PUBLIC
Qt::Core
)
if(ANDROID)
if(ANDROID OR IOS)
target_link_libraries(heartrate-server PUBLIC
Qt::Gui
)