]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | set(rados_srcs |
2 | rados/rados.cc | |
3 | RadosDump.cc | |
4 | rados/RadosImport.cc | |
5 | rados/PoolDump.cc | |
6 | ${PROJECT_SOURCE_DIR}/src/common/util.cc | |
94b18763 FG |
7 | ${PROJECT_SOURCE_DIR}/src/common/obj_bencher.cc |
8 | ${PROJECT_SOURCE_DIR}/src/osd/ECUtil.cc) | |
7c673cae | 9 | add_executable(rados ${rados_srcs}) |
11fdf7f2 TL |
10 | |
11 | target_link_libraries(rados librados global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS}) | |
12 | if(WITH_LIBRADOSSTRIPER) | |
13 | target_link_libraries(rados radosstriper) | |
14 | else() | |
15 | target_link_libraries(rados cls_lock_client) | |
16 | endif() | |
7c673cae FG |
17 | install(TARGETS rados DESTINATION bin) |
18 | ||
f67539c2 TL |
19 | if(NOT WIN32) |
20 | set(neorados_srcs | |
21 | neorados.cc) | |
22 | add_executable(neorados ${neorados_srcs}) | |
522d829b | 23 | target_link_libraries(neorados libneorados spawn fmt::fmt ${CMAKE_DL_LIBS}) |
f67539c2 TL |
24 | #install(TARGETS neorados DESTINATION bin) |
25 | endif() | |
26 | ||
7c673cae FG |
27 | if(WITH_TESTS) |
28 | add_executable(ceph_scratchtool scratchtool.c) | |
29 | target_link_libraries(ceph_scratchtool librados global) | |
30 | install(TARGETS ceph_scratchtool DESTINATION bin) | |
31 | ||
32 | add_executable(ceph_scratchtoolpp scratchtoolpp.cc) | |
33 | target_link_libraries(ceph_scratchtoolpp librados global) | |
34 | install(TARGETS ceph_scratchtoolpp DESTINATION bin) | |
35 | ||
36 | add_executable(ceph_radosacl radosacl.cc) | |
37 | target_link_libraries(ceph_radosacl librados global) | |
38 | install(TARGETS ceph_radosacl DESTINATION bin) | |
39 | ||
11fdf7f2 TL |
40 | install(PROGRAMS |
41 | ceph-monstore-update-crush.sh | |
42 | DESTINATION ${CMAKE_INSTALL_LIBDIR}/ceph) | |
43 | endif(WITH_TESTS) | |
44 | ||
7c673cae | 45 | add_executable(ceph-osdomap-tool ceph_osdomap_tool.cc) |
31f18b77 | 46 | target_link_libraries(ceph-osdomap-tool os global Boost::program_options) |
7c673cae FG |
47 | install(TARGETS ceph-osdomap-tool DESTINATION bin) |
48 | ||
3efd9988 FG |
49 | add_executable(ceph-monstore-tool |
50 | ceph_monstore_tool.cc | |
a4b75251 | 51 | ../auth/cephx/CephxKeyServer.cc |
3efd9988 | 52 | ../mgr/mgr_commands.cc) |
31f18b77 | 53 | target_link_libraries(ceph-monstore-tool os global Boost::program_options) |
7c673cae | 54 | install(TARGETS ceph-monstore-tool DESTINATION bin) |
7c673cae FG |
55 | |
56 | add_executable(ceph-objectstore-tool | |
57 | ceph_objectstore_tool.cc | |
58 | rebuild_mondb.cc | |
59 | RadosDump.cc) | |
31f18b77 | 60 | target_link_libraries(ceph-objectstore-tool osd os global Boost::program_options ${CMAKE_DL_LIBS}) |
7c673cae | 61 | if(WITH_FUSE) |
1911f103 | 62 | target_link_libraries(ceph-objectstore-tool FUSE::FUSE) |
7c673cae FG |
63 | endif(WITH_FUSE) |
64 | install(TARGETS ceph-objectstore-tool DESTINATION bin) | |
65 | ||
66 | if(WITH_LIBCEPHFS) | |
67 | if(WITH_TESTS) | |
68 | add_executable(ceph-client-debug ceph-client-debug.cc) | |
69 | target_link_libraries(ceph-client-debug cephfs global client) | |
70 | install(TARGETS ceph-client-debug DESTINATION bin) | |
71 | endif(WITH_TESTS) | |
72 | endif(WITH_LIBCEPHFS) | |
73 | ||
11fdf7f2 TL |
74 | add_executable(ceph-kvstore-tool |
75 | kvstore_tool.cc | |
76 | ceph_kvstore_tool.cc) | |
7c673cae FG |
77 | target_link_libraries(ceph-kvstore-tool os global) |
78 | install(TARGETS ceph-kvstore-tool DESTINATION bin) | |
7c673cae FG |
79 | |
80 | set(ceph_conf_srcs ceph_conf.cc) | |
81 | add_executable(ceph-conf ${ceph_conf_srcs}) | |
82 | target_link_libraries(ceph-conf global) | |
83 | install(TARGETS ceph-conf DESTINATION bin) | |
84 | ||
85 | set(crushtool_srcs crushtool.cc) | |
86 | add_executable(crushtool ${crushtool_srcs}) | |
87 | target_link_libraries(crushtool global) | |
88 | install(TARGETS crushtool DESTINATION bin) | |
89 | ||
90 | set(monmaptool_srcs monmaptool.cc) | |
91 | add_executable(monmaptool ${monmaptool_srcs}) | |
92 | target_link_libraries(monmaptool global) | |
93 | install(TARGETS monmaptool DESTINATION bin) | |
94 | ||
95 | set(osdomaptool_srcs osdmaptool.cc) | |
96 | add_executable(osdmaptool ${osdomaptool_srcs}) | |
97 | target_link_libraries(osdmaptool global) | |
98 | install(TARGETS osdmaptool DESTINATION bin) | |
99 | ||
20effc67 TL |
100 | install(PROGRAMS crushdiff DESTINATION bin) |
101 | ||
e306af50 TL |
102 | set(ceph-diff-sorted_srcs ceph-diff-sorted.cc) |
103 | add_executable(ceph-diff-sorted ${ceph-diff-sorted_srcs}) | |
adb31ebb TL |
104 | set_target_properties(ceph-diff-sorted PROPERTIES |
105 | SKIP_RPATH TRUE | |
106 | INSTALL_RPATH "") | |
e306af50 TL |
107 | install(TARGETS ceph-diff-sorted DESTINATION bin) |
108 | ||
7c673cae FG |
109 | if(WITH_TESTS) |
110 | set(ceph_psim_srcs psim.cc) | |
111 | add_executable(ceph_psim ${ceph_psim_srcs}) | |
112 | target_link_libraries(ceph_psim global) | |
113 | install(TARGETS ceph_psim DESTINATION bin) | |
114 | endif(WITH_TESTS) | |
115 | ||
116 | set(ceph_authtool_srcs ceph_authtool.cc) | |
117 | add_executable(ceph-authtool ${ceph_authtool_srcs}) | |
118 | target_link_libraries(ceph-authtool global ${EXTRALIBS} ${CRYPTO_LIBS}) | |
119 | install(TARGETS ceph-authtool DESTINATION bin) | |
120 | ||
11fdf7f2 | 121 | if(WITH_TESTS) |
9f95a23c TL |
122 | set(ceph_dedup_tool_srcs ceph_dedup_tool.cc) |
123 | add_executable(ceph-dedup-tool ${ceph_dedup_tool_srcs}) | |
f67539c2 TL |
124 | target_link_libraries(ceph-dedup-tool |
125 | librados | |
126 | global | |
127 | cls_cas_client | |
128 | cls_cas_internal) | |
9f95a23c | 129 | install(TARGETS ceph-dedup-tool DESTINATION bin) |
11fdf7f2 TL |
130 | endif(WITH_TESTS) |
131 | ||
7c673cae FG |
132 | if(WITH_CEPHFS) |
133 | add_subdirectory(cephfs) | |
f67539c2 | 134 | add_subdirectory(cephfs_mirror) |
7c673cae FG |
135 | endif(WITH_CEPHFS) |
136 | ||
137 | if(WITH_RBD) | |
138 | add_subdirectory(rbd) | |
139 | add_subdirectory(rbd_mirror) | |
140 | if(LINUX) | |
141 | add_subdirectory(rbd_nbd) | |
142 | endif() | |
f67539c2 TL |
143 | if(WIN32) |
144 | add_subdirectory(rbd_wnbd) | |
145 | endif() | |
d2e6a577 FG |
146 | if(FREEBSD) |
147 | add_subdirectory(rbd_ggate) | |
148 | endif() | |
7c673cae | 149 | endif(WITH_RBD) |
11fdf7f2 | 150 | |
9f95a23c TL |
151 | if(WITH_SEASTAR) |
152 | add_subdirectory(crimson) | |
153 | endif() | |
154 | ||
155 | add_subdirectory(immutable_object_cache) | |
11fdf7f2 | 156 | add_subdirectory(ceph-dencoder) |
f67539c2 | 157 | add_subdirectory(erasure-code) |