Fix framework linking

This commit is contained in:
zhupengfei
2020-06-20 23:38:07 +08:00
parent f009574b1e
commit 1b8b66521f
+3 -1
View File
@@ -115,7 +115,9 @@ find_package(Qt5 REQUIRED COMPONENTS Widgets ${QT_PREFIX_HINT})
if (APPLE)
# Umbrella framework for everything GUI-related
find_library(COCOA_LIBRARY Cocoa)
set(PLATFORM_LIBRARIES ${COCOA_LIBRARY} ${IOKIT_LIBRARY} ${COREVIDEO_LIBRARY})
# For qdevicewatcher
find_library(DISK_ARBITRATION_LIBRARY DiskArbitration)
set(PLATFORM_LIBRARIES ${COCOA_LIBRARY} ${DISK_ARBITRATION_LIBRARY})
elseif (WIN32)
# WSAPoll and SHGetKnownFolderPath (AppData/Roaming) didn't exist before WinNT 6.x (Vista)
add_definitions(-D_WIN32_WINNT=0x0600 -DWINVER=0x0600)