加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
cmake_minimum_required(VERSION 3.6.2)
project(zilu_gb28181)
#头文件
include_directories(include)
include_directories(src)
#设置编译参数
set(CMAKE_CXX_FLAGS "-ffunction-sections -fdata-sections -Wall -std=c++11 -DPOSIX -DDEBUG_")
link_directories(${PROJECT_SOURCE_DIR}/lib/m64x86/)
# 设置可执行文件的输出路径(EXCUTABLE_OUTPUT_PATH是全局变量)
set(EXECUTABLE_OUTPUT_PATH ./)
#源文件
add_executable(zilu_gb28181
src/main.cpp
src/utils/tinyxml2.cpp
src/utils/common.cpp
src/utils/ptz/ptz_parser.cpp
src/config_manager.cpp
src/gb_service/sip_server.cpp
src/gb_service/gb28181_svr_manager.cpp
src/gb_service/event_handler/handler_manager.cpp
src/gb_service/event_handler/register_handler.cpp
src/gb_service/event_handler/message_handler.cpp
src/gb_service/event_handler/subscribe_handler.cpp
src/gb_service/event_handler/call_handler.cpp
src/gb_service/event_handler/base_handler.cpp
src/gb_service/manscdp/request_sender.cpp
src/gb_service/manscdp/xml_parser.cpp
src/gb_service/manscdp/xml_assembly.cpp
src/gb_service/request_manager/request_manager.cpp
src/gb_service/request_manager/base_request.cpp
src/gb_service/request_manager/message_request.cpp
src/gb_service/event_handler/sdp/sdp.cpp
src/media_transpond/media_transpond.cpp
src/media_transpond/session_manager.cpp
)
#设置链接库
link_directories(${PROJECT_SOURCE_DIR}/lib/m64x86/)
target_link_libraries(zilu_gb28181 pthread json eXosip2 osip2 osipparser2 uuid ssl crypto resolv yaml StreamResolver)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化