完善mingw编译环境的适配

This commit is contained in:
ziyue
2022-01-11 14:09:57 +08:00
parent fdcc29e0ed
commit 5b6ff0af27
6 changed files with 14 additions and 17 deletions

View File

@@ -2,14 +2,15 @@
aux_source_directory(. TEST_SRC_LIST)
foreach (TEST_SRC ${TEST_SRC_LIST})
get_filename_component(TEST_EXE_NAME ${TEST_SRC} NAME_WE)
if (NOT ENABLE_WEBRTC)
# 暂时过滤掉依赖 WebRTC 的测试模块
if ("${TEST_SRC}" MATCHES "test_rtcp_nack\.cpp")
if ("${TEST_EXE_NAME}" MATCHES "test_rtcp_nack")
continue()
endif ()
endif ()
get_filename_component(TEST_EXE_NAME ${TEST_SRC} NAME_WE)
message(STATUS "add test:${TEST_EXE_NAME}")
add_executable(${TEST_EXE_NAME} ${TEST_SRC})