-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
44 lines (32 loc) · 1.02 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
cmake_minimum_required(VERSION 3.27)
if (WIN32)
add_compile_options(/wd4068)
endif ()
include(ExternalProject)
# https://chromiumdash.appspot.com/branches
set(WEBRTC_REVISION m128.6613.2.0)
set(BOOST_REVISION 1.86.0)
set(BOOST_LIBS filesystem)
option(STATIC_BUILD "Build static libraries" ON)
if(DEFINED PY_VERSION_INFO)
set(IS_PYTHON TRUE)
endif()
project(ntgcalls VERSION 1.2.3 LANGUAGES C CXX)
add_compile_definitions(NTG_VERSION="${CMAKE_PROJECT_VERSION}")
find_package(Threads REQUIRED)
find_package(Python3 REQUIRED COMPONENTS Interpreter QUIET)
get_filename_component(deps_loc "deps" REALPATH)
include(cmake/PlatformUtil.cmake)
include(cmake/DownloadProject.cmake)
include(cmake/GitUtils.cmake)
include(cmake/FindCURL.cmake)
include(cmake/FindWebRTC.cmake)
include(cmake/FindLibCXX.cmake)
include(cmake/FindBoost.cmake)
# pybind11
add_subdirectory(deps/pybind11)
# nlohmann/json
set(JSON_BuildTests OFF CACHE INTERNAL "")
add_subdirectory(deps/json EXCLUDE_FROM_ALL)
add_subdirectory(wrtc)
add_subdirectory(ntgcalls)