Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2020-01-15 13:39:34 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2020-01-15 13:42:20 +0300
commit473bcff5cb45d276e0879868b617299d90d09580 (patch)
tree3d39f5779f9ea11d6d5a26122e730a6f3e5e880e /tests
parent5319b79965066226ae9f0c38f02d43d35f7bd21f (diff)
Fix linking error with ffmpeg_test on Linux
The exact reason is unclear, but we might as well link just the few libraries that are actually needed for ffmpeg.
Diffstat (limited to 'tests')
-rw-r--r--tests/gtests/ffmpeg/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/gtests/ffmpeg/CMakeLists.txt b/tests/gtests/ffmpeg/CMakeLists.txt
index 2ccdd1ffa55..8eea5d6c57b 100644
--- a/tests/gtests/ffmpeg/CMakeLists.txt
+++ b/tests/gtests/ffmpeg/CMakeLists.txt
@@ -25,13 +25,15 @@ set(INC
)
set(LIB
-
+ ${PNG_LIBRARIES}
+ ${FFMPEG_LIBRARIES}
+ ${ZLIB_LIBRARIES}
)
-include_directories(${INC})
+if(WITH_IMAGE_OPENJPEG)
+ set(LIB ${LIB} ${OPENJPEG_LIBRARIES})
+endif()
-setup_libdirs()
+include_directories(${INC})
BLENDER_SRC_GTEST(ffmpeg "ffmpeg_codecs.cc" "${LIB}")
-
-setup_liblinks(ffmpeg_test)