From b026634a3e7e72b1aa7801bd119e35fe99aa9596 Mon Sep 17 00:00:00 2001 From: wxf Date: Sat, 26 Jun 2021 17:10:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E5=90=AF=E7=94=A8=20WebRTC=20?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E7=A6=81=E7=94=A8=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 64ec28a1..8219b816 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -55,6 +55,12 @@ else() endif() foreach(TEST_SRC ${TEST_SRC_LIST}) + if(NOT ENABLE_WEBRTC) + # 暂时过滤掉依赖 WebRTC 的测试模块 + if("${TEST_SRC}" MATCHES "test_rtcp_nack\.cpp") + continue() + endif() + endif() STRING(REGEX REPLACE "^\\./|\\.c[a-zA-Z0-9_]*$" "" TEST_EXE_NAME ${TEST_SRC}) message(STATUS "add test:${TEST_EXE_NAME}") add_executable(${TEST_EXE_NAME} ${TEST_SRC})