Code: Select all
cmake_minimum_required(VERSION 3.12)
project(wxwidgets_test)
set(CMAKE_CXX_STANDARD 11)
find_package(wxWidgets 3.1.3 COMPONENTS all REQUIRED)
include(${wxWidgets_USE_FILE})
add_executable(wxwidgets_test MACOSX_BUNDLE main.cpp)
target_link_libraries(wxwidgets_test ${wxWidgets_LIBRARIES})
add_custom_target(NSPrincipalClass ALL plutil -replace NSPrincipalClass -string NSApplication ${CMAKE_BINARY_DIR}/wxwidgets_test.app/Contents/Info.plist DEPENDS wxwidgets_test)
add_custom_target(NSHighResolutionCapable ALL plutil -replace NSHighResolutionCapable -bool true ${CMAKE_BINARY_DIR}/wxwidgets_test.app/Contents/Info.plist DEPENDS wxwidgets_test)
It's not Retina.
Even though I double-checked the `Info.plist` and saw that the correct things were there, it's still not HiDPI, even though the demo applications are:
What am I doing wrong? I can't find any significant differences, yet the demo applications are working great and mine is blurry...
I think in the past I was able to get HiDPI working when I built wxWidgets 3.1.1 as part of the CMake project, but that's like... way too hard to maintain. It was literally a nightmare. I had to switch the standard library and everything. Obviously now I don't do any of that stuff because it's ridiculous and I don't want to maintain a mess like that.
I'm on macOS Mojave, 10.14.6 using wxWidgets 3.1.3 (downloaded from the official website)