1 Star 0 Fork 0

fengyongjun/opencv_ffmpeg_streaming

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
Andrea Nobile 提交于 2018-10-27 16:46 . clean cmake
project(simple_opencv_streaming)
cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set ( CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} ")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -std=c++11 -Wall ")
set ( CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} -fsanitize=address -fsanitize=undefined ")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11 -Wall -O0 -fno-omit-frame-pointer -fsanitize=address -fsanitize=undefined -D__FORTIFY_SOURCE=2 -rdynamic -DDEBUG")
#set ( CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} ")
#set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11 -Wall -O0 -fno-omit-frame-pointer ")
find_package(OpenCV 3 REQUIRED)
include(CMakeToolsHelpers OPTIONAL)
include_directories(${OpenCV_INCLUDE_DIRS})
add_subdirectory(streamer)
add_executable(simple_opencv_streaming main.cpp)
target_link_libraries(simple_opencv_streaming streamer ${OpenCV_LIBS})
target_link_libraries(simple_opencv_streaming avcodec avformat avutil swscale avfilter avdevice)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/fengyongjun/opencv_ffmpeg_streaming.git
[email protected]:fengyongjun/opencv_ffmpeg_streaming.git
fengyongjun
opencv_ffmpeg_streaming
opencv_ffmpeg_streaming
master

搜索帮助