-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
148 lines (129 loc) · 3.83 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
cmake_minimum_required (VERSION 2.6)
project(recd)
include_directories( ./include/ )
include_directories( ${CMAKE_INSTALL_PREFIX}/include/fedlibrary/include )
include_directories( ${CMAKE_INSTALL_PREFIX}/include/fedlibrary/include/RCI )
include_directories( ${CMAKE_INSTALL_PREFIX}/include/fedlibrary/template_include )
include_directories( ${CMAKE_INSTALL_PREFIX}/include/libav++ )
IF(NOT CMAKE_BUILD_TYPE )
SET(CMAKE_BUILD_TYPE Release CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
FORCE)
ENDIF()
IF( CMAKE_BUILD_TYPE STREQUAL "Debug" )
set( RECD_VERSION
-debug
)
set( RECD_CLI_VERSION
-2.0.2-debug
)
set( LIBAVCPP_VER
-3.3.0-debug
)
set( FEDLIB_VER
-3.2.0-debug
)
ELSE()
set( RECD_VERSION
)
set( RECD_CLI_VERSION
-2.0.2
)
set( LIBAVCPP_VER
-3.3.0
)
set( FEDLIB_VER
-3.2.0
)
ENDIF()
set( RECD_INCLUDE
./include/IRecdCommand.h
./include/Recd.h
./include/RecdChannel.h
./include/RecdChannelFactory.h
./include/RecdCmdServer.h
./include/RecdConfig.h
./include/RecdConfigException.h
./include/RecdEvents.h
./include/RecdResult.h
./include/RecdAudioReader.h
./include/RecdStreamReader.h
./include/RecdReaderCollector.h
./include/RecdRenderEncoder.h
./include/RecdStreamEncoder.h
./include/RecdEncoderCollector.h
./include/RecdHighLightsEncoder.h
./include/COMMANDS/RecdList.h
./include/COMMANDS/RecdHelp.h
./include/COMMANDS/RecdGetVersion.h
./include/COMMANDS/RecdGetBuffers.h
./include/COMMANDS/RecdGetDiskSize.h
./include/COMMANDS/RecdStartRecording.h
./include/COMMANDS/RecdStopRecording.h
./include/COMMANDS/RecdStartHighLights.h
./include/COMMANDS/RecdEstimateTime.h
)
set( RECD_CLI_INCLUDE
./include/RecdParser.h
./include/RecdClient.h
)
set( RECD_SRC
./src/main.cpp
./src/Recd.cpp
./src/RecdChannel.cpp
./src/RecdChannelFactory.cpp
./src/RecdCmdServer.cpp
./src/RecdConfig.cpp
./src/RecdConfigException.cpp
./src/RecdEvents.cpp
./src/RecdRenderEncoder.cpp
./src/RecdAudioReader.cpp
./src/RecdStreamReader.cpp
./src/RecdReaderCollector.cpp
./src/RecdStreamEncoder.cpp
./src/RecdEncoderCollector.cpp
./src/RecdHighLightsEncoder.cpp
)
set( RECD_CLI_SRC
./src/RecdParser.cpp
./src/RecdClient.cpp
)
set( RECD_CLI_LIBRARIES
pthread
fedlibrary${FEDLIB_VER}
)
set( RECD_LIBRARIES
pthread
av++${LIBAVCPP_VER}
fedlibrary${FEDLIB_VER}
)
set( CAPTURE_LIBRARIES
pthread
av++${LIBAVCPP_VER}
fedlibrary${FEDLIB_VER}
)
IF( CMAKE_BUILD_TYPE STREQUAL "Debug" )
add_definitions(
-ggdb3
)
ENDIF()
add_definitions(
-D__STDC_CONSTANT_MACROS
-D_NO_FED_NAMESPACE
-D_TRACING_EXCEPTION_RAISE
-D_TRACING_EXCEPTION_CATCH
-D_ENABLE_ERROR_INFO
-D_ENABLE_LOG_INFO
-D_ENABLE_RAW_INFO
-D_ENABLE_METHOD_TRACING
-D_ENABLE_VERBOSE_INFO
-D_ENABLE_ASSERTION_TRACING
)
add_library ( recdclient${RECD_CLI_VERSION} SHARED ${RECD_CLI_SRC} )
add_executable( recd${RECD_VERSION} ${RECD_SRC} )
add_executable( capture utils/capture.cpp )
target_link_libraries( recdclient${RECD_CLI_VERSION} ${RECD_CLI_LIBRARIES} )
target_link_libraries( recd${RECD_VERSION} ${RECD_LIBRARIES} )
target_link_libraries( capture ${CAPTURE_LIBRARIES} )
install( TARGETS recdclient${RECD_CLI_VERSION} LIBRARY DESTINATION /usr/local/lib )
install( FILES ${RECD_CLI_INCLUDE} DESTINATION /usr/include/librecdcli )