ZLMediaKit/webrtc/CMakeLists.txt

17 lines
447 B
CMake
Raw Normal View History

2021-03-24 16:52:41 +08:00
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(./)
2021-03-31 18:32:43 +08:00
file(GLOB SRC_LIST ./*.cpp ./*.h ./*.hpp)
2021-03-24 16:52:41 +08:00
add_library(webrtc ${SRC_LIST})
set(LINK_LIB_LIST ${LINK_LIB_LIST} PARENT_SCOPE)