Skip to content

Commit e4a260d

Browse files
author
Stefan Buschmann
committed
Enable high-dpi scaling on macOS
1 parent e6d5d25 commit e4a260d

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

cmake/CustomMacOSXBundleInfo.plist.in

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>English</string>
7+
<key>CFBundleExecutable</key>
8+
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
9+
<key>CFBundleGetInfoString</key>
10+
<string>${MACOSX_BUNDLE_INFO_STRING}</string>
11+
<key>CFBundleIconFile</key>
12+
<string>${MACOSX_BUNDLE_ICON_FILE}</string>
13+
<key>CFBundleIdentifier</key>
14+
<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
15+
<key>CFBundleInfoDictionaryVersion</key>
16+
<string>6.0</string>
17+
<key>CFBundleLongVersionString</key>
18+
<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
19+
<key>CFBundleName</key>
20+
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
21+
<key>CFBundlePackageType</key>
22+
<string>APPL</string>
23+
<key>CFBundleShortVersionString</key>
24+
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
25+
<key>CFBundleSignature</key>
26+
<string>????</string>
27+
<key>CFBundleVersion</key>
28+
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
29+
<key>CSResourcesFileMapped</key>
30+
<true/>
31+
<key>NSHumanReadableCopyright</key>
32+
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
33+
<key>NSPrincipalClass</key>
34+
<string>NSApplication</string>
35+
<key>NSHighResolutionCapable</key>
36+
<string>True</string>
37+
</dict>
38+
</plist>

source/applications/gloperate-viewer/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ set_target_properties(${target}
7373
PROPERTIES
7474
${DEFAULT_PROJECT_OPTIONS}
7575
FOLDER "${IDE_FOLDER}"
76+
MACOSX_BUNDLE_INFO_PLIST CustomMacOSXBundleInfo.plist.in
7677
)
7778

7879

0 commit comments

Comments
 (0)