-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
56 lines (44 loc) · 1.42 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
cmake_minimum_required(VERSION 3.0)
project(base)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 11)
# set(CMAKE_INSTALL_PREFIX "/home/docker/webrtc_neteq")
# Compiler flags
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -DNDEBUG -DWEBRTC_POSIX -g")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -DNDEBUG -DWEBRTC_POSIX -g")
# Include directories
include_directories(
.
)
# Source files
file(GLOB DSPSRC common_audio/signal_processing/*.c)
list(APPEND DSPSRC common_audio/third_party/spl_sqrt_floor/spl_sqrt_floor.c)
file(GLOB BASESRC rtc_base/*.cc)
file(GLOB VADSRC common_audio/vad/*.c)
set(SCALESRC common_audio/signal_processing/dot_product_with_scale.cc)
# Library targets
add_library(signal_processing ${DSPSRC} ${SCALESRC})
add_library(base ${BASESRC})
add_library(webrtc_vad ${VADSRC})
install(TARGETS signal_processing
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin)
install(TARGETS base
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin)
install(TARGETS webrtc_vad
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin)
# External libraries
add_subdirectory(neteq)
add_subdirectory(codec/interface)
# Example target
add_subdirectory(example)
# Clean target
add_custom_target(clean-all
COMMAND ${CMAKE_BUILD_TOOL} clean
COMMAND rm -rf ${CMAKE_BINARY_DIR}/*.a
)