-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
71 lines (52 loc) · 1.85 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
cmake_minimum_required(VERSION 3.23)
project(zoom_analysis)
set(CMAKE_CXX_STANDARD 17)
include(cmake/catch.cmake)
include(cmake/cxxopts.cmake)
include(cmake/pcap.cmake)
set(ZOOM_ANALYSIS_LIB_PCAP_SRC
lib/pcap_file_reader.h lib/pcap_file_reader.cc
lib/pcap_file_writer.h lib/pcap_file_writer.cc)
set(ZOOM_ANALYSIS_LIB_SRC
lib/file_stream.h
lib/fps_calculator.h lib/fps_calculator.cc
lib/jitter_calculator.h lib/jitter_calculator.cc
lib/mac_counter.h lib/mac_counter.cc
lib/net.h lib/net.cc
lib/ring_buffer.h
lib/rtcp.h
lib/rtp.h
lib/rtp_stream_analyzer.h
lib/simple_binary_reader.h
lib/simple_binary_writer.h
lib/zoom.h lib/zoom.cc
lib/zoom_analyzer.h lib/zoom_analyzer.cc
lib/zoom_flow_tracker.h lib/zoom_flow_tracker.cc
lib/zoom_nets.h
lib/zoom_offline_analyzer.h lib/zoom_offline_analyzer.cc)
list(TRANSFORM ZOOM_ANALYSIS_LIB_PCAP_SRC PREPEND src/)
list(TRANSFORM ZOOM_ANALYSIS_LIB_SRC PREPEND src/)
#### zoom_flows:
add_executable(zoom_flows
${ZOOM_ANALYSIS_LIB_SRC}
${ZOOM_ANALYSIS_LIB_PCAP_SRC}
src/cmd/zoom_flows.h
src/cmd/zoom_flows_main.cc)
target_include_directories(zoom_flows PUBLIC ext/include)
target_link_libraries(zoom_flows ${PCAP_LIBRARIES})
set_target_properties(zoom_flows PROPERTIES LINKER_LANGUAGE CXX)
#### zoom_rtp:
add_executable(zoom_rtp
${ZOOM_ANALYSIS_LIB_SRC} src/cmd/zoom_rtp.h
src/cmd/zoom_rtp_main.cc)
target_include_directories(zoom_rtp PUBLIC ext/include)
set_target_properties(zoom_rtp PROPERTIES LINKER_LANGUAGE CXX)
#### zoom_rtp:
add_executable(zoom_meetings
${ZOOM_ANALYSIS_LIB_SRC} src/cmd/zoom_meetings.h
src/cmd/zoom_meetings_main.cc)
target_include_directories(zoom_meetings PUBLIC ext/include)
set_target_properties(zoom_meetings PROPERTIES LINKER_LANGUAGE CXX)
#### unit testing:
enable_testing()
add_subdirectory(test)