-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
64 lines (47 loc) · 1.81 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
cmake_minimum_required(VERSION 3.20.2)
project(meeting_sdk_linux_sample VERSION 1.0.1)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_COMPILER /usr/bin/g++)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
set(ZOOM_SDK lib/zoomsdk)
find_package(ada REQUIRED)
find_package(CLI11 REQUIRED)
find_path(JWT_CPP_INCLUDE_DIRS "jwt-cpp/base.h")
find_package(X11 REQUIRED)
include_directories(${X11_INCLUDE_DIR})
link_directories(${X11_LIBRARIES})
find_package(PkgConfig REQUIRED)
pkg_check_modules(deps REQUIRED IMPORTED_TARGET glib-2.0)
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
include_directories(${ZOOM_SDK}/h)
link_directories(${ZOOM_SDK} ${ZOOM_SDK})
link_directories(${ZOOM_SDK} ${ZOOM_SDK}/qt_libs/**)
add_executable(zoomsdk src/main.cpp
src/Zoom.cpp
src/Zoom.h
src/Config.cpp
src/Config.h
src/util/Singleton.h
src/util/Log.h
src/events/AuthServiceEvent.cpp
src/events/AuthServiceEvent.h
src/events/MeetingServiceEvent.cpp
src/events/MeetingServiceEvent.h
src/events/MeetingReminderEvent.cpp
src/events/MeetingReminderEvent.h
src/events/MeetingRecordingCtrlEvent.cpp
src/events/MeetingRecordingCtrlEvent.h
src/raw_record/ZoomSDKAudioRawDataDelegate.cpp
src/raw_record/ZoomSDKAudioRawDataDelegate.h
src/raw_record/ZoomSDKRendererDelegate.cpp
src/raw_record/ZoomSDKRendererDelegate.h
src/raw_send/ZoomSDKVideoSource.h
src/raw_send/ZoomSDKVideoSource.cpp
src/util/SocketServer.h
src/util/SocketServer.cpp
)
target_include_directories(zoomsdk PRIVATE ${JWT_CPP_INCLUDE_DIRS})
target_link_libraries(zoomsdk PRIVATE meetingsdk ada::ada CLI11::CLI11 PkgConfig::deps ${OpenCV_LIBS} ${X11_LIBRARIES})