Fix apple linking
This commit is contained in:
@@ -11,6 +11,7 @@ function(LinkAppleFrameworks TARGET)
|
|||||||
PUBLIC "-framework IOSurface"
|
PUBLIC "-framework IOSurface"
|
||||||
PUBLIC "-framework QuartzCore"
|
PUBLIC "-framework QuartzCore"
|
||||||
PUBLIC "-framework AVFoundation"
|
PUBLIC "-framework AVFoundation"
|
||||||
|
PUBLIC "-framework ImageIO"
|
||||||
PUBLIC "-lstdc++"
|
PUBLIC "-lstdc++"
|
||||||
PUBLIC c++
|
PUBLIC c++
|
||||||
PUBLIC c
|
PUBLIC c
|
||||||
@@ -31,6 +32,7 @@ function(LinkAppleFrameworks TARGET)
|
|||||||
find_library(QUARTZ Quartz)
|
find_library(QUARTZ Quartz)
|
||||||
find_library(AVFOUNDATION AVFoundation)
|
find_library(AVFOUNDATION AVFoundation)
|
||||||
find_library(COREMEDIA CoreMedia)
|
find_library(COREMEDIA CoreMedia)
|
||||||
|
find_library(IMAGEIO ImageIO)
|
||||||
|
|
||||||
# link the frameworks located above
|
# link the frameworks located above
|
||||||
if(IOS)
|
if(IOS)
|
||||||
@@ -46,4 +48,5 @@ function(LinkAppleFrameworks TARGET)
|
|||||||
target_link_libraries(${TARGET} PUBLIC ${SYSTEMCONFIGURATION})
|
target_link_libraries(${TARGET} PUBLIC ${SYSTEMCONFIGURATION})
|
||||||
target_link_libraries(${TARGET} PUBLIC ${AVFOUNDATION})
|
target_link_libraries(${TARGET} PUBLIC ${AVFOUNDATION})
|
||||||
target_link_libraries(${TARGET} PUBLIC ${COREMEDIA})
|
target_link_libraries(${TARGET} PUBLIC ${COREMEDIA})
|
||||||
|
target_link_libraries(${TARGET} PUBLIC ${IMAGEIO})
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|||||||
Reference in New Issue
Block a user