Fix mistakenly removed compilation of mac notification backend

This commit is contained in:
Nicolas Werner 2022-04-16 15:20:49 +02:00
parent a0bfe067fd
commit 76c5d6d2ca
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 4 additions and 1 deletions

View file

@ -581,6 +581,10 @@ endif()
if (APPLE)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework Foundation -framework Cocoa -framework UserNotifications")
set(SRC_FILES ${SRC_FILES} src/notifications/ManagerMac.mm src/notifications/ManagerMac.cpp)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0")
set_source_files_properties( src/notifications/ManagerMac.mm PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
endif()
elseif (WIN32)
file(DOWNLOAD
"https://raw.githubusercontent.com/mohabouje/WinToast/41ed1c58d5dce0ee9c01dbdeac05be45358d4f57/src/wintoastlib.cpp"

View file

@ -4,7 +4,6 @@
#import <AppKit/NSImage.h>
#import <UserNotifications/UserNotifications.h>
#include <QtMac>
#include <QImage>
@interface UNNotificationAttachment (UNNotificationAttachmentAdditions)