Link AVFoundation on macos

This commit is contained in:
Georg Hagen
2025-01-24 17:40:40 +01:00
parent 00907cb10f
commit 8a5042109d

View File

@@ -10,6 +10,7 @@ function(LinkAppleFrameworks TARGET)
PUBLIC "-framework MetalKit"
PUBLIC "-framework IOSurface"
PUBLIC "-framework QuartzCore"
PUBLIC "-framework AVFoundation"
PUBLIC "-lstdc++"
PUBLIC c++
PUBLIC c
@@ -28,6 +29,7 @@ function(LinkAppleFrameworks TARGET)
find_library(APPKIT AppKit)
find_library(IOSURFACE IOSurface)
find_library(QUARTZ Quartz)
find_library(AVFOUNDATION AVFoundation)
# link the frameworks located above
if(IOS)
@@ -41,4 +43,5 @@ function(LinkAppleFrameworks TARGET)
target_link_libraries(${TARGET} PUBLIC ${FOUNDATION})
target_link_libraries(${TARGET} PUBLIC ${CFNETWORK})
target_link_libraries(${TARGET} PUBLIC ${SYSTEMCONFIGURATION})
target_link_libraries(${TARGET} PUBLIC ${AVFOUNDATION})
endfunction()