]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | |
2 | add_executable(ceph_erasure_code_benchmark | |
3 | ${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc | |
4 | ceph_erasure_code_benchmark.cc) | |
31f18b77 | 5 | target_link_libraries(ceph_erasure_code_benchmark ceph-common Boost::program_options global ${CMAKE_DL_LIBS}) |
7c673cae FG |
6 | install(TARGETS ceph_erasure_code_benchmark |
7 | DESTINATION bin) | |
8 | ||
9 | add_executable(ceph_erasure_code_non_regression ceph_erasure_code_non_regression.cc) | |
31f18b77 | 10 | target_link_libraries(ceph_erasure_code_non_regression ceph-common Boost::program_options global ${CMAKE_DL_LIBS}) |
7c673cae FG |
11 | |
12 | add_executable(ceph_erasure_code ceph_erasure_code.cc) | |
31f18b77 | 13 | target_link_libraries(ceph_erasure_code ceph-common Boost::program_options global ${CMAKE_DL_LIBS}) |
7c673cae FG |
14 | install(TARGETS ceph_erasure_code |
15 | DESTINATION bin) | |
16 | ||
17 | add_library(ec_example SHARED | |
18 | ErasureCodePluginExample.cc | |
19 | $<TARGET_OBJECTS:erasure_code_objs>) | |
20 | add_dependencies(ec_example ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) | |
21 | target_link_libraries(ec_example pthread ${EXTRALIBS}) | |
22 | ||
23 | add_library(ec_missing_entry_point SHARED ErasureCodePluginMissingEntryPoint.cc) | |
24 | add_dependencies(ec_missing_entry_point ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) | |
25 | target_link_libraries(ec_missing_entry_point pthread ${EXTRALIBS}) | |
26 | ||
27 | add_library(ec_missing_version SHARED ErasureCodePluginMissingVersion.cc) | |
28 | add_dependencies(ec_missing_version ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) | |
29 | target_link_libraries(ec_missing_version pthread ${EXTRALIBS}) | |
30 | ||
31 | add_library(ec_hangs SHARED ErasureCodePluginHangs.cc) | |
32 | add_dependencies(ec_hangs ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) | |
33 | target_link_libraries(ec_hangs pthread ${EXTRALIBS}) | |
34 | ||
35 | add_library(ec_fail_to_initialize SHARED ErasureCodePluginFailToInitialize.cc) | |
36 | add_dependencies(ec_fail_to_initialize ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) | |
37 | target_link_libraries(ec_fail_to_initialize pthread ${EXTRALIBS}) | |
38 | ||
39 | add_library(ec_fail_to_register SHARED ErasureCodePluginFailToRegister.cc) | |
40 | add_dependencies(ec_fail_to_register ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) | |
41 | target_link_libraries(ec_fail_to_register pthread ${EXTRALIBS}) | |
42 | ||
43 | # unittest_erasure_code_plugin | |
44 | add_executable(unittest_erasure_code_plugin | |
45 | ${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc | |
46 | TestErasureCodePlugin.cc | |
47 | $<TARGET_OBJECTS:unit-main> | |
48 | ) | |
49 | add_ceph_unittest(unittest_erasure_code_plugin ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_plugin) | |
50 | target_link_libraries(unittest_erasure_code_plugin | |
51 | global | |
52 | ${CMAKE_DL_LIBS} | |
53 | ec_example | |
54 | ceph-common | |
55 | ) | |
56 | add_dependencies(unittest_erasure_code_plugin | |
57 | ec_example | |
58 | ec_missing_entry_point | |
59 | ec_missing_version | |
60 | ec_hangs | |
61 | ec_fail_to_initialize | |
62 | ec_fail_to_register) | |
63 | ||
64 | # unittest_erasure_code | |
65 | add_executable(unittest_erasure_code | |
66 | ${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc | |
67 | TestErasureCode.cc | |
68 | $<TARGET_OBJECTS:unit-main> | |
69 | ) | |
70 | add_ceph_unittest(unittest_erasure_code ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code) | |
71 | target_link_libraries(unittest_erasure_code | |
72 | global | |
73 | ceph-common | |
74 | ) | |
75 | ||
76 | # unittest_erasure_code_plugin_jerasure | |
77 | add_executable(unittest_erasure_code_plugin_jerasure | |
78 | TestErasureCodePluginJerasure.cc | |
79 | $<TARGET_OBJECTS:unit-main> | |
80 | ) | |
81 | add_ceph_unittest(unittest_erasure_code_plugin_jerasure ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_plugin_jerasure) | |
82 | target_link_libraries(unittest_erasure_code_plugin_jerasure | |
83 | global | |
84 | ceph-common) | |
85 | add_dependencies(unittest_erasure_code_plugin_jerasure | |
86 | ec_jerasure) | |
87 | ||
88 | if(HAVE_BETTER_YASM_ELF64) | |
89 | ||
90 | #unittest_erasure_code_isa | |
91 | add_executable(unittest_erasure_code_isa | |
92 | ${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc | |
93 | TestErasureCodeIsa.cc | |
94 | $<TARGET_OBJECTS:unit-main> | |
95 | ) | |
96 | add_ceph_unittest(unittest_erasure_code_isa ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_isa) | |
97 | target_link_libraries(unittest_erasure_code_isa | |
98 | global | |
99 | ceph-common | |
100 | ec_isa | |
101 | erasure_code | |
102 | ) | |
103 | ||
104 | #unittest_erasure_code_plugin_isa | |
105 | add_executable(unittest_erasure_code_plugin_isa | |
106 | ${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc | |
107 | TestErasureCodePluginIsa.cc | |
108 | $<TARGET_OBJECTS:unit-main> | |
109 | ) | |
110 | add_ceph_unittest(unittest_erasure_code_plugin_isa ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_plugin_isa) | |
111 | target_link_libraries(unittest_erasure_code_plugin_isa | |
112 | global | |
113 | ceph-common | |
114 | ${CMAKE_DL_LIBS} | |
115 | erasure_code | |
116 | ) | |
117 | add_dependencies(unittest_erasure_code_plugin_isa | |
118 | ec_isa) | |
119 | endif(HAVE_BETTER_YASM_ELF64) | |
120 | ||
121 | # unittest_erasure_code_lrc | |
122 | add_executable(unittest_erasure_code_lrc | |
123 | TestErasureCodeLrc.cc | |
124 | $<TARGET_OBJECTS:unit-main>) | |
125 | add_ceph_unittest(unittest_erasure_code_lrc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_lrc) | |
126 | target_link_libraries(unittest_erasure_code_lrc | |
127 | global | |
128 | ${CMAKE_DL_LIBS} | |
129 | ec_lrc | |
130 | ceph-common | |
131 | ) | |
132 | ||
133 | # unittest_erasure_code_plugin_lrc | |
134 | add_executable(unittest_erasure_code_plugin_lrc | |
135 | TestErasureCodePluginLrc.cc | |
136 | $<TARGET_OBJECTS:unit-main> | |
137 | ) | |
138 | add_ceph_unittest(unittest_erasure_code_plugin_lrc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_plugin_lrc) | |
139 | add_dependencies(unittest_erasure_code_plugin_lrc | |
140 | ec_lrc | |
141 | ec_jerasure) | |
142 | target_link_libraries(unittest_erasure_code_plugin_lrc | |
143 | global | |
144 | ${CMAKE_DL_LIBS} | |
145 | ceph-common) | |
146 | ||
147 | # unittest_erasure_code_plugin_shec | |
148 | add_executable(unittest_erasure_code_plugin_shec | |
149 | TestErasureCodePluginShec.cc | |
150 | $<TARGET_OBJECTS:unit-main> | |
151 | ) | |
152 | add_ceph_unittest(unittest_erasure_code_plugin_shec ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_plugin_shec) | |
153 | target_link_libraries(unittest_erasure_code_plugin_shec | |
154 | global | |
155 | ${CMAKE_DL_LIBS} | |
156 | ceph-common) | |
157 | add_dependencies(unittest_erasure_code_plugin_shec | |
158 | ec_shec) | |
159 | ||
160 | # unittest_erasure_code_example | |
161 | add_executable(unittest_erasure_code_example | |
162 | ${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc | |
163 | TestErasureCodeExample.cc | |
164 | $<TARGET_OBJECTS:unit-main> | |
165 | ) | |
166 | add_ceph_unittest(unittest_erasure_code_example ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_example) | |
167 | target_link_libraries(unittest_erasure_code_example | |
168 | global | |
169 | ${CMAKE_DL_LIBS} | |
170 | ceph-common | |
171 | erasure_code | |
172 | ${UNITTEST_LIBS} | |
173 | ) | |
174 | set_target_properties(unittest_erasure_code_example PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS}) | |
175 | ||
176 | include_directories(${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/jerasure/include) | |
177 | include_directories(${CMAKE_SOURCE_DIR}/src/erasure-code//jerasure/gf-complete/include) | |
178 | ||
179 | # unittest_erasure_code_jerasure | |
180 | add_executable(unittest_erasure_code_jerasure | |
181 | TestErasureCodeJerasure.cc | |
182 | $<TARGET_OBJECTS:unit-main> | |
183 | ) | |
184 | add_ceph_unittest(unittest_erasure_code_jerasure ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_jerasure) | |
185 | target_link_libraries(unittest_erasure_code_jerasure | |
186 | global | |
187 | ceph-common | |
188 | ec_jerasure | |
189 | ) | |
190 | ||
191 | include_directories(${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure) | |
192 | include_directories(${CMAKE_SOURCE_DIR}/src/erasure-code/shec) | |
193 | ||
194 | # unittest_erasure_code_shec | |
195 | add_executable(unittest_erasure_code_shec | |
196 | TestErasureCodeShec.cc | |
197 | $<TARGET_OBJECTS:unit-main> | |
198 | ) | |
199 | add_ceph_unittest(unittest_erasure_code_shec ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_shec) | |
200 | target_link_libraries(unittest_erasure_code_shec | |
201 | global | |
202 | ${CMAKE_DL_LIBS} | |
203 | ceph-common | |
204 | ec_shec | |
205 | ) | |
206 | ||
207 | # unittest_erasure_code_shec_all | |
208 | add_executable(unittest_erasure_code_shec_all | |
209 | TestErasureCodeShec_all.cc | |
210 | ) | |
211 | add_ceph_unittest(unittest_erasure_code_shec_all ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_shec_all) | |
212 | target_link_libraries(unittest_erasure_code_shec_all | |
213 | global | |
214 | ${CMAKE_DL_LIBS} | |
215 | ceph-common | |
216 | ec_shec | |
217 | ) | |
218 | ||
219 | # unittest_erasure_code_shec_thread | |
220 | add_executable(unittest_erasure_code_shec_thread | |
221 | TestErasureCodeShec_thread.cc | |
222 | $<TARGET_OBJECTS:unit-main> | |
223 | ) | |
224 | add_ceph_unittest(unittest_erasure_code_shec_thread ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_shec_thread) | |
225 | target_link_libraries(unittest_erasure_code_shec_thread | |
226 | global | |
227 | ${CMAKE_DL_LIBS} | |
228 | ceph-common | |
229 | ec_shec | |
230 | ) | |
231 | ||
232 | ||
233 | # unittest_erasure_code_shec_arguments | |
234 | add_executable(unittest_erasure_code_shec_arguments | |
235 | TestErasureCodeShec_arguments.cc | |
236 | ) | |
237 | add_ceph_unittest(unittest_erasure_code_shec_arguments ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_erasure_code_shec_arguments) | |
238 | target_link_libraries(unittest_erasure_code_shec_arguments | |
239 | global | |
240 | ${CMAKE_DL_LIBS} | |
241 | ceph-common | |
242 | ec_shec | |
243 | ) |