-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
34 lines (25 loc) · 1.03 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.14.0)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
project(CppVideoStreamClient)
set(LIBRARY_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE})
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(BEFORE SYSTEM ${webrtc_native_INCLUDE})
include_directories(../../opentera-webrtc-native-client/3rdParty/json/include)
include_directories(../../opentera-webrtc-native-client/3rdParty/IXWebSocket)
include_directories(../../opentera-webrtc-native-client/3rdParty/cpp-httplib)
include_directories(../../opentera-webrtc-native-client/OpenteraWebrtcNativeClient/include)
add_executable(CppVideoStreamClient main.cpp)
target_link_libraries(CppVideoStreamClient
OpenteraWebrtcNativeClient
opencv_videoio
opencv_highgui
)
if (NOT WIN32)
target_link_libraries(CppVideoStreamClient
pthread
)
endif()
if (NOT OPENTERA_WEBRTC_USE_SYSTEM_OPENCV)
add_dependencies(CppVideoStreamClient opencv_highgui opencv_videoio)
endif()
set_property(TARGET CppVideoStreamClient PROPERTY CXX_STANDARD 17)