CMake: Fix linking of ffmpeg_test on macOS
Part of the issue was missing library path to png library. Other part was missing iconv passed to linker.
This commit is contained in:
@@ -21,7 +21,10 @@
|
|||||||
set(INC
|
set(INC
|
||||||
.
|
.
|
||||||
..
|
..
|
||||||
|
|
||||||
${FFMPEG_INCLUDE_DIRS}
|
${FFMPEG_INCLUDE_DIRS}
|
||||||
|
${PNG_INCLUDE_DIRS}
|
||||||
|
${ZLIB_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(LIB
|
set(LIB
|
||||||
@@ -34,6 +37,8 @@ if(WITH_IMAGE_OPENJPEG)
|
|||||||
set(LIB ${LIB} ${OPENJPEG_LIBRARIES})
|
set(LIB ${LIB} ${OPENJPEG_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
setup_platform_linker_flags()
|
||||||
|
link_directories(${FFMPEG_LIBPATH} ${PNG_LIBPATH} ${ZLIB_LIBPATH})
|
||||||
include_directories(${INC})
|
include_directories(${INC})
|
||||||
|
|
||||||
BLENDER_SRC_GTEST(ffmpeg "ffmpeg_codecs.cc" "${LIB}")
|
BLENDER_SRC_GTEST(ffmpeg "ffmpeg_codecs.cc" "${LIB}")
|
||||||
|
Reference in New Issue
Block a user