mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 02:05:43 +08:00
Build MacOS executables as bundles
This commit is contained in:
@@ -28,10 +28,22 @@ target_link_libraries(swiftguistd
|
||||
sound
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
set_target_properties(swiftguistd PROPERTIES MACOSX_BUNDLE TRUE)
|
||||
set_target_properties(swiftguistd PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)
|
||||
set(RESOURCE_FILES swift.icns qt.conf)
|
||||
target_sources(swiftguistd PRIVATE ${RESOURCE_FILES})
|
||||
set_target_properties(swiftguistd PROPERTIES RESOURCE "${RESOURCE_FILES}")
|
||||
endif()
|
||||
|
||||
add_dependencies(swiftguistd resources)
|
||||
|
||||
if(WIN32)
|
||||
add_dependencies(swiftguistd copy_externals_to_build_dir)
|
||||
endif()
|
||||
|
||||
install(TARGETS swiftguistd)
|
||||
if(APPLE)
|
||||
install(TARGETS swiftguistd BUNDLE DESTINATION bin)
|
||||
else()
|
||||
install(TARGETS swiftguistd)
|
||||
endif()
|
||||
|
||||
@@ -7,19 +7,19 @@
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>swift gui</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<string>swiftguistd</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>swift project - free and open source pilot client</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>${ASSETCATALOG_COMPILER_APPICON_NAME}</string>
|
||||
<string>swift.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
|
||||
<string>org.swift-project.swiftguistd</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>${QMAKE_PKGINFO_TYPEINFO}</string>
|
||||
<string>????</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
||||
<string>10.13</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
<key>NSSupportsAutomaticGraphicsSwitching</key>
|
||||
|
||||
Reference in New Issue
Block a user