Link AVFoundation on macos
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user