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>
This commit is contained in:
parent
956e7bbe21
commit
d4546e76a5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue