-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
74 lines (65 loc) · 2.11 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
# This file is part of Desktop App Toolkit,
# a set of libraries for developing nice desktop applications.
#
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL
add_library(lib_webrtc OBJECT)
add_library(desktop-app::lib_webrtc ALIAS lib_webrtc)
init_target(lib_webrtc)
get_filename_component(src_loc . REALPATH)
target_precompile_headers(lib_webrtc PRIVATE ${src_loc}/webrtc/webrtc_pch.h)
nice_target_sources(lib_webrtc ${src_loc}
PRIVATE
webrtc/webrtc_audio_input_tester.cpp
webrtc/webrtc_audio_input_tester.h
webrtc/webrtc_create_adm.cpp
webrtc/webrtc_create_adm.h
webrtc/webrtc_device_common.h
webrtc/webrtc_device_resolver.cpp
webrtc/webrtc_device_resolver.h
webrtc/webrtc_environment.cpp
webrtc/webrtc_environment.h
webrtc/webrtc_video_track.cpp
webrtc/webrtc_video_track.h
webrtc/details/webrtc_environment_openal.cpp
webrtc/details/webrtc_environment_openal.h
webrtc/details/webrtc_environment_video_capture.cpp
webrtc/details/webrtc_environment_video_capture.h
webrtc/details/webrtc_openal_adm.cpp
webrtc/details/webrtc_openal_adm.h
webrtc/platform/linux/webrtc_environment_linux.cpp
webrtc/platform/linux/webrtc_environment_linux.h
webrtc/platform/mac/webrtc_environment_mac.h
webrtc/platform/mac/webrtc_environment_mac.mm
webrtc/platform/win/webrtc_environment_win.cpp
webrtc/platform/win/webrtc_environment_win.h
webrtc/platform/win/webrtc_loopback_adm_win.cpp
webrtc/platform/win/webrtc_loopback_adm_win.h
webrtc/platform/webrtc_platform_environment.h
webrtc/webrtc_pch.h
)
if (WIN32)
target_compile_definitions(lib_webrtc
PRIVATE
WEBRTC_WIN
)
nuget_add_winrt(lib_webrtc)
elseif (APPLE)
target_compile_definitions(lib_webrtc
PRIVATE
WEBRTC_MAC
)
endif()
target_include_directories(lib_webrtc
PUBLIC
${src_loc}
)
target_link_libraries(lib_webrtc
PUBLIC
desktop-app::lib_base
desktop-app::lib_ffmpeg
desktop-app::external_qt
desktop-app::external_openal
PRIVATE
desktop-app::external_webrtc
)