mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
未启用 WebRTC 的情况下禁用相关测试用例
This commit is contained in:
parent
8c670c652e
commit
b026634a3e
@ -55,6 +55,12 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
foreach(TEST_SRC ${TEST_SRC_LIST})
|
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})
|
STRING(REGEX REPLACE "^\\./|\\.c[a-zA-Z0-9_]*$" "" TEST_EXE_NAME ${TEST_SRC})
|
||||||
message(STATUS "add test:${TEST_EXE_NAME}")
|
message(STATUS "add test:${TEST_EXE_NAME}")
|
||||||
add_executable(${TEST_EXE_NAME} ${TEST_SRC})
|
add_executable(${TEST_EXE_NAME} ${TEST_SRC})
|
||||||
|
Loading…
Reference in New Issue
Block a user