mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
tests: 调整测试程序名称获取方式
This commit is contained in:
parent
0d48275115
commit
e679404701
@ -8,7 +8,8 @@ foreach (TEST_SRC ${TEST_SRC_LIST})
|
||||
continue()
|
||||
endif ()
|
||||
endif ()
|
||||
STRING(REGEX REPLACE "^\\./|\\.c[a-zA-Z0-9_]*$" "" TEST_EXE_NAME ${TEST_SRC})
|
||||
|
||||
get_filename_component(TEST_EXE_NAME ${TEST_SRC} NAME_WE)
|
||||
message(STATUS "add test:${TEST_EXE_NAME}")
|
||||
add_executable(${TEST_EXE_NAME} ${TEST_SRC})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user