代码拉取完成,页面将自动刷新
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)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。