-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
68 lines (45 loc) · 1.67 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
project(cloud_game_rtc)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
MESSAGE(STATUS "#########################")
SET(CMAKE_BUILD_TYPE Release)
#SET(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_FLAGS "-std=c++11 -g -fno-rtti ") #注意调试的话,此行代码一定要添加!
add_definitions(-D WEBRTC_POSIX) # -fPIC
add_definitions(-D WEBRTC_LINUX)
#add_definitions(-D TEST_APP_CAPTUER)
SET(WEBRTC_DIR /home/chensong/dep/webrtc)
#if (WIN32 OR WIN64)
# set(HOOK_DIR "windows")
#elseif (APPLE)
# set(HOOK_DIR "darwin")
#else()
# set(HOOK_DIR "x11")
#endif()
INCLUDE_DIRECTORIES(
/usr/local/include
${WEBRTC_DIR}/include
${WEBRTC_DIR}/include/third_party/libyuv/include
${WEBRTC_DIR}/include/third_party/abseil-cpp
${WEBRTC_DIR}/include/third_party/jsoncpp/source/include
${WEBRTC_DIR}/include/third_party/jsoncpp/generated
#${WEBRTC_DIR}/include/third_party/googletest/src/googletest/include
${WEBRTC_DIR}/gen
# ${PROJECT_SOURCE_DIR}/client/input_device
${PROJECT_SOURCE_DIR}/client/rtc
${PROJECT_SOURCE_DIR}/client
# ${PROJECT_SOURCE_DIR}/client/input_device
# ${PROJECT_SOURCE_DIR}/client/input_device/${HOOK_DIR}
)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/linux/lib)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/linux)
LINK_DIRECTORIES(
/usr/local/lib
/usr/local/lib64
/usr/lib/x86_64-linux-gnu
${PROJECT_SOURCE_DIR}/linux/lib
${WEBRTC_DIR}/lib/
)
add_subdirectory(hook)
add_subdirectory(client/linux_capture)
# add_subdirectory(client/input_device)
add_subdirectory(client)