summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2021-09-09 18:25:14 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2021-09-10 19:05:36 +0200
commitd4546e76a54454a4999ef357e1c1d9f463cb8bd3 (patch)
treeb1c4d810659920cedf92aeb89fa05c3cfb6a9394 /examples
parent956e7bbe2109f507807b16a02702427fcaaf3377 (diff)
Bluetooth (examples): update CMakeLists.txt to include Info.plist
Pick-to: 6.2 Change-Id: I87097dc605ff34db1f8d7fb92d055402693906e1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/bluetooth/btscanner/CMakeLists.txt6
-rw-r--r--examples/bluetooth/heartrate-game/CMakeLists.txt7
-rw-r--r--examples/bluetooth/heartrate-server/CMakeLists.txt7
-rw-r--r--examples/bluetooth/lowenergyscanner/CMakeLists.txt6
4 files changed, 26 insertions, 0 deletions
diff --git a/examples/bluetooth/btscanner/CMakeLists.txt b/examples/bluetooth/btscanner/CMakeLists.txt
index d12609a6..71fdc074 100644
--- a/examples/bluetooth/btscanner/CMakeLists.txt
+++ b/examples/bluetooth/btscanner/CMakeLists.txt
@@ -26,6 +26,12 @@ set_target_properties(btscanner PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
+if(APPLE)
+ set_target_properties(btscanner PROPERTIES
+ MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist"
+ )
+endif()
+
target_link_libraries(btscanner PUBLIC
Qt::Bluetooth
Qt::Core
diff --git a/examples/bluetooth/heartrate-game/CMakeLists.txt b/examples/bluetooth/heartrate-game/CMakeLists.txt
index 7567a97e..3f3879bb 100644
--- a/examples/bluetooth/heartrate-game/CMakeLists.txt
+++ b/examples/bluetooth/heartrate-game/CMakeLists.txt
@@ -40,6 +40,13 @@ target_link_libraries(heartrate-game PUBLIC
Qt::Quick
)
+if(APPLE)
+ set_target_properties(heartrate-game PROPERTIES
+ MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist"
+ )
+endif()
+
+
# Resources:
set(qml_resource_files
diff --git a/examples/bluetooth/heartrate-server/CMakeLists.txt b/examples/bluetooth/heartrate-server/CMakeLists.txt
index 9ec86f85..f97516d5 100644
--- a/examples/bluetooth/heartrate-server/CMakeLists.txt
+++ b/examples/bluetooth/heartrate-server/CMakeLists.txt
@@ -37,6 +37,13 @@ if(ANDROID)
)
endif()
+if(APPLE)
+ set_target_properties(heartrate-server PROPERTIES
+ MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist"
+ )
+endif()
+
+
install(TARGETS heartrate-server
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
diff --git a/examples/bluetooth/lowenergyscanner/CMakeLists.txt b/examples/bluetooth/lowenergyscanner/CMakeLists.txt
index 45a5461d..d1a9e658 100644
--- a/examples/bluetooth/lowenergyscanner/CMakeLists.txt
+++ b/examples/bluetooth/lowenergyscanner/CMakeLists.txt
@@ -40,6 +40,12 @@ target_link_libraries(lowenergyscanner PUBLIC
Qt::Quick
)
+if(APPLE)
+ set_target_properties(lowenergyscanner PROPERTIES
+ MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist"
+ )
+endif()
+
# Resources:
set(resources_resource_files