From 5f3a46d611b925e5a46cc40b63182e4d36adc152 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Wed, 25 May 2022 16:06:30 +0800 Subject: [PATCH] =?UTF-8?q?FFmpeg=E6=9C=AA=E6=89=BE=E5=88=B0=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=BF=BD=E7=95=A5player=5Fopencv=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/tests/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/tests/CMakeLists.txt b/api/tests/CMakeLists.txt index eeec6129..e3ecd64b 100644 --- a/api/tests/CMakeLists.txt +++ b/api/tests/CMakeLists.txt @@ -1,6 +1,14 @@ aux_source_directory(. TEST_SRC_LIST) foreach(TEST_SRC ${TEST_SRC_LIST}) STRING(REGEX REPLACE "^\\./|\\.c[a-zA-Z0-9_]*$" "" TEST_EXE_NAME ${TEST_SRC}) + + if (NOT ENABLE_FFMPEG) + # 过滤掉依赖 FFmpeg 的测试模块 + if ("${TEST_EXE_NAME}" MATCHES "player_opencv") + continue() + endif () + endif () + message(STATUS "add c api tester:${TEST_EXE_NAME}") set(exe_name api_tester_${TEST_EXE_NAME}) add_executable(${exe_name} ${TEST_SRC})