summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/btchat
diff options
context:
space:
mode:
authorAndreas Buhr <andreas@andreasbuhr.de>2021-02-10 12:06:08 +0100
committerAndreas Buhr <andreas@andreasbuhr.de>2021-02-11 09:33:43 +0100
commit0961f042ee42f00152b7fea3f7b9e8d1727272cf (patch)
tree34d8d862407966ec0c7f9affe1b91c3e178ac094 /examples/bluetooth/btchat
parentf87e7c63541b2fd30e6543db3c4caf46d9c9869a (diff)
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>
Diffstat (limited to 'examples/bluetooth/btchat')
-rw-r--r--examples/bluetooth/btchat/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/bluetooth/btchat/CMakeLists.txt b/examples/bluetooth/btchat/CMakeLists.txt
index 7a137056..5647ba94 100644
--- a/examples/bluetooth/btchat/CMakeLists.txt
+++ b/examples/bluetooth/btchat/CMakeLists.txt
@@ -35,6 +35,7 @@ target_link_libraries(btchat PUBLIC
)
if(ANDROID)
+ find_package(Qt6 COMPONENTS AndroidExtras)
target_link_libraries(btchat PUBLIC
Qt::AndroidExtras
)