Fix btchat standalone build: find AndroidExtras before linking it

The btchat standalone build fails because AndroidExtras is linked
which is unknown to CMake at that point. This patch adds
the required find_package call.

Change-Id: I378575a5dd4fe42a89712f903d5cbfa6b539acec
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
This commit is contained in:
Andreas Buhr 2021-02-10 12:06:08 +01:00
parent f87e7c6354
commit 0961f042ee
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ target_link_libraries(btchat PUBLIC
)
if(ANDROID)
find_package(Qt6 COMPONENTS AndroidExtras)
target_link_libraries(btchat PUBLIC
Qt::AndroidExtras
)