-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
82 lines (69 loc) · 2.46 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
cmake_minimum_required(VERSION 3.20)
project(Simple_WebRtc_Cpp_Linux)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
include_directories(
#################################################################
# > Project Files
"src"
"picojson"
#################################################################
# > WebRtc Project Files
"$ENV{HOME}/webrtc_linux/src"
"$ENV{HOME}/webrtc_linux/src/test"
"$ENV{HOME}/webrtc_linux/src/build/out/Debug/obj"
"$ENV{HOME}/webrtc_linux/src/third_party/abseil-cpp"
"$ENV{HOME}/webrtc_linux/src/third_party/googletest/src/googletest/include"
"$ENV{HOME}/webrtc_linux/src/third_party/libyuv/include"
"$ENV{HOME}/webrtc_linux/src/third_party/libyuv/source"
"$ENV{HOME}/webrtc_linux/src/third_party/jsoncpp/source/include"
"$ENV{HOME}/webrtc_linux/src/base"
"$ENV{HOME}/webrtc_linux/src/media/base"
"$ENV{HOME}/webrtc_linux/src/media/engine"
"$ENV{HOME}/webrtc_linux/src/pc"
#################################################################
# > External Modules
"/usr/include/websocketpp"
"/usr/include/nlohmann"
"/usr/include/boost"
)
add_definitions(
-DWEBRTC_POSIX
-D_ITERATOR_DEBUG_LEVEL=0
-DUSE_AURA=1
-D_HAS_EXCEPTIONS=0
-D__STD_C
-D_CRT_RAND_S
-D_CRT_SECURE_NO_DEPRECATE
-D_SCL_SECURE_NO_DEPRECATE
-D_ATL_NO_OPENGL
-DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS
-DPSAPI_VERSION=2
-D_SECURE_ATL
-D__WRL_NO_DEFAULT_LIB__
-DNOMINMAX
-D_UNICODE
-DUNICODE
-DNTDDI_VERSION=NTDDI_WIN10_RS2
-DNDEBUG
-DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0
-DWEBRTC_ENABLE_PROTOBUF=0
-DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE
-DRTC_ENABLE_VP9
-DHAVE_SCTP
-DWEBRTC_LIBRARY_IMPL
-DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0
-DABSL_ALLOCATOR_NOTHROW=1
-DHAVE_SCTP
)
add_executable(Simple_WebRtc_Cpp_Linux
main.cpp
webrtc/rtc_connection.h
webrtc/rtc_wrapper.h webrtc/rtc_ice.h)
target_link_libraries(Simple_WebRtc_Cpp_Linux
PUBLIC "$ENV{HOME}/webrtc_linux/src/out/Debug/obj/libwebrtc.a"
-lpthread
-lboost_system
-ldl
)