mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
17 lines
431 B
CMake
17 lines
431 B
CMake
list(APPEND LINK_LIB_LIST webrtc)
|
|
#查找srtp是否安装
|
|
find_package(SRTP QUIET)
|
|
if (SRTP_FOUND)
|
|
message(STATUS "found library:${SRTP_LIBRARIES}")
|
|
include_directories(${SRTP_INCLUDE_DIRS})
|
|
list(APPEND LINK_LIB_LIST ${SRTP_LIBRARIES})
|
|
else ()
|
|
message(FATAL_ERROR "srtp未找到!")
|
|
endif ()
|
|
|
|
include_directories(./)
|
|
file(GLOB SRC_LIST ./*.*)
|
|
add_library(webrtc ${SRC_LIST})
|
|
set(LINK_LIB_LIST ${LINK_LIB_LIST} PARENT_SCOPE)
|
|
|