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:
parent
160e28b303
commit
13e48b009e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue