From de494531992912651df8e3a36536e55e71cecca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 27 Jan 2020 21:48:51 +0100 Subject: [PATCH] Platform: make a macOS bundle also for GlfwApplication test. --- src/Magnum/Platform/Test/CMakeLists.txt | 7 +++++++ .../Platform/Test/GlfwApplicationTest.plist | 20 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/Magnum/Platform/Test/GlfwApplicationTest.plist diff --git a/src/Magnum/Platform/Test/CMakeLists.txt b/src/Magnum/Platform/Test/CMakeLists.txt index b2a82fac3..93cd9384d 100644 --- a/src/Magnum/Platform/Test/CMakeLists.txt +++ b/src/Magnum/Platform/Test/CMakeLists.txt @@ -61,6 +61,13 @@ if(WITH_GLFWAPPLICATION) target_sources(PlatformGlfwApplicationTest PRIVATE ${Platform_RESOURCES}) target_link_libraries(PlatformGlfwApplicationTest PRIVATE MagnumTrade) set_target_properties(PlatformGlfwApplicationTest PROPERTIES FOLDER "Magnum/Platform/Test") + if(CORRADE_TARGET_APPLE) + # The plist is needed in order to mark the app as DPI-aware + set_target_properties(PlatformGlfwApplicationTest PROPERTIES + MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/GlfwApplicationTest.plist + MACOSX_BUNDLE ON + XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED "YES") + endif() endif() if(WITH_GLXAPPLICATION) diff --git a/src/Magnum/Platform/Test/GlfwApplicationTest.plist b/src/Magnum/Platform/Test/GlfwApplicationTest.plist new file mode 100644 index 000000000..a8ccfa9ca --- /dev/null +++ b/src/Magnum/Platform/Test/GlfwApplicationTest.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + en-US + CFBundleExecutable + ${MACOSX_BUNDLE_EXECUTABLE_NAME} + CFBundleIdentifier + cz.mosra.magnum.GlfwApplicationTest + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Magnum Triangle + CFBundlePackageType + APPL + NSHighResolutionCapable + + +