Fix Android build of heartrate-server

The heartrate-server example links Qt::Gui on Android. But
Qt::Gui was not found using find_package. This patch adds
the missing find_package() call

Change-Id: I54e98f4959964c8730cdddda6ef8a6d4501ec866
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
This commit is contained in:
Andreas Buhr 2021-02-22 16:49:04 +01:00
parent 160e28b303
commit 13e48b009e
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/bluetooth/heartrate-server")
find_package(Qt6 COMPONENTS Core)
find_package(Qt6 COMPONENTS Bluetooth)
if(ANDROID)
find_package(Qt6 COMPONENTS Gui)
endif()
qt_add_executable(heartrate-server
main.cpp