-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
63 lines (51 loc) · 1.58 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
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)
set (BUILD_SHARED_LIBS OFF)
# webrtc_native must be first
add_subdirectory(webrtc_native)
add_subdirectory(pybind11)
add_subdirectory(json)
set(USE_ZLIB OFF)
set(USE_TLS ON)
set(OPENSSL_FOUND TRUE)
set(OPENSSL_DEFINITIONS "")
set(OPENSSL_INCLUDE_DIR ${boringssl_INCLUDE})
set(OPENSSL_LIBRARIES ${boringssl_LIBRARY})
add_subdirectory(IXWebSocket)
set_property(TARGET ixwebsocket PROPERTY CXX_STANDARD 17)
target_compile_options(ixwebsocket PRIVATE -w)
if (OPENTERA_WEBRTC_ENABLE_TESTS)
add_subdirectory(googletest)
endif()
if(NOT OPENTERA_WEBRTC_USE_SYSTEM_OPENCV)
# Set OpenCV flags
set(OPENCV_FORCE_3RDPARTY_BUILD ON)
set(BUILD_SHARED_LIBS OFF)
# Enable/Disable modules :
set(BUILD_opencv_core ON)
set(BUILD_opencv_imgproc ON)
set(BUILD_opencv_calib3d OFF)
set(BUILD_opencv_dnn OFF)
set(BUILD_opencv_features2d OFF)
set(BUILD_opencv_flann OFF)
set(BUILD_opencv_gapi OFF)
set(BUILD_opencv_highgui ON)
set(BUILD_opencv_imgcodecs ON)
set(BUILD_opencv_ml OFF)
set(BUILD_opencv_objdetect OFF)
set(BUILD_opencv_photo OFF)
set(BUILD_opencv_python2 OFF)
set(BUILD_opencv_python3 OFF)
set(BUILD_opencv_stitching OFF)
set(BUILD_opencv_ts OFF)
set(BUILD_opencv_video OFF)
set(BUILD_opencv_videoio ON)
set(BUILD_JAVA OFF)
set(BUILD_OBJC OFF)
set(BUILD_OPENEXR OFF)
set(WITH_OPENEXR OFF)
# Configure opencv
add_subdirectory(opencv)
endif()
install(DIRECTORY json/include DESTINATION include FILES_MATCHING PATTERN "*.hpp")