1 Star 1 Fork 3

zhoutianyou00/webrtc-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
咸鱼 提交于 2019-12-30 15:58 . 修改底层ice
cmake_minimum_required(VERSION 2.8)
project (mywebrtc)
function(test_lib LIB_NAME)
if (${LIB_NAME} MATCHES "^.*-NOTFOUND")
message(FATAL_ERROR "lib not found: " ${LIB_NAME} " check README")
return()
endif(${LIB_NAME} MATCHES "^.*-NOTFOUND")
endfunction(test_lib)
set(ERIZO_CMAKE_CXX_FLAGS "${ERIZO_CMAKE_CXX_FLAGS} -DWEBRTC_POSIX")
set(ERIZO_CMAKE_CXX_FLAGS "${ERIZO_CMAKE_CXX_FLAGS} -fPIC -DWEBRTC_LINUX")
set(ERIZO_CMAKE_CXX_FLAGS "${ERIZO_CMAKE_CXX_FLAGS} -DBOOST_THREAD_PROVIDES_FUTURE -DBOOST_THREAD_PROVIDES_FUTURE_CONTINUATION -DBOOST_THREAD_PROVIDES_FUTURE_WHEN_ALL_WHEN_ANY")
set(CMAKE_CXX_FLAGS "-g -Wall -std=c++11 ${ERIZO_CMAKE_CXX_FLAGS}")
message("------------ ${CMAKE_CURRENT_SOURCE_DIR}")
set(ToolKit_Include ${CMAKE_CURRENT_SOURCE_DIR}/ZLMediaKit/3rdpart/ZLToolKit/src)
set(MediaKit_Include ${CMAKE_CURRENT_SOURCE_DIR}/ZLMediaKit/src)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/webrtc/src)
include_directories(erizo)
include_directories(${ToolKit_Include})
include_directories(${MediaKit_Include})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(rtsp)
include_directories(thirdparty/include)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/lib)
#boost
find_package(Boost REQUIRED COMPONENTS regex filesystem thread system)
# LOG4CXX
find_library(LOG log4cxx)
test_lib(${LOG})
#muduo_net
file(GLOB NET_SRC ${CMAKE_CURRENT_SOURCE_DIR}/net/*.cpp)
add_library(net STATIC ${NET_SRC})
add_subdirectory(erizo)
add_subdirectory(webrtc/src)
add_subdirectory(ZLMediaKit)
add_subdirectory(example)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhoutianyou00/webrtc-server.git
git@gitee.com:zhoutianyou00/webrtc-server.git
zhoutianyou00
webrtc-server
webrtc-server
master

搜索帮助