]>
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 | ||
19 | if(WITH_TESTS) | |
20 | add_executable(ceph_scratchtool scratchtool.c) | |
21 | target_link_libraries(ceph_scratchtool librados global) | |
22 | install(TARGETS ceph_scratchtool DESTINATION bin) | |
23 | ||
24 | add_executable(ceph_scratchtoolpp scratchtoolpp.cc) | |
25 | target_link_libraries(ceph_scratchtoolpp librados global) | |
26 | install(TARGETS ceph_scratchtoolpp DESTINATION bin) | |
27 | ||
28 | add_executable(ceph_radosacl radosacl.cc) | |
29 | target_link_libraries(ceph_radosacl librados global) | |
30 | install(TARGETS ceph_radosacl DESTINATION bin) | |
31 | ||
11fdf7f2 TL |
32 | install(PROGRAMS |
33 | ceph-monstore-update-crush.sh | |
34 | DESTINATION ${CMAKE_INSTALL_LIBDIR}/ceph) | |
35 | endif(WITH_TESTS) | |
36 | ||
7c673cae | 37 | add_executable(ceph-osdomap-tool ceph_osdomap_tool.cc) |
31f18b77 | 38 | target_link_libraries(ceph-osdomap-tool os global Boost::program_options) |
7c673cae FG |
39 | install(TARGETS ceph-osdomap-tool DESTINATION bin) |
40 | ||
3efd9988 FG |
41 | add_executable(ceph-monstore-tool |
42 | ceph_monstore_tool.cc | |
43 | ../mgr/mgr_commands.cc) | |
31f18b77 | 44 | target_link_libraries(ceph-monstore-tool os global Boost::program_options) |
7c673cae | 45 | install(TARGETS ceph-monstore-tool DESTINATION bin) |
7c673cae FG |
46 | |
47 | add_executable(ceph-objectstore-tool | |
48 | ceph_objectstore_tool.cc | |
49 | rebuild_mondb.cc | |
50 | RadosDump.cc) | |
31f18b77 | 51 | target_link_libraries(ceph-objectstore-tool osd os global Boost::program_options ${CMAKE_DL_LIBS}) |
7c673cae | 52 | if(WITH_FUSE) |
1911f103 | 53 | target_link_libraries(ceph-objectstore-tool FUSE::FUSE) |
7c673cae FG |
54 | endif(WITH_FUSE) |
55 | install(TARGETS ceph-objectstore-tool DESTINATION bin) | |
56 | ||
57 | if(WITH_LIBCEPHFS) | |
58 | if(WITH_TESTS) | |
59 | add_executable(ceph-client-debug ceph-client-debug.cc) | |
60 | target_link_libraries(ceph-client-debug cephfs global client) | |
61 | install(TARGETS ceph-client-debug DESTINATION bin) | |
62 | endif(WITH_TESTS) | |
63 | endif(WITH_LIBCEPHFS) | |
64 | ||
11fdf7f2 TL |
65 | add_executable(ceph-kvstore-tool |
66 | kvstore_tool.cc | |
67 | ceph_kvstore_tool.cc) | |
7c673cae FG |
68 | target_link_libraries(ceph-kvstore-tool os global) |
69 | install(TARGETS ceph-kvstore-tool DESTINATION bin) | |
7c673cae FG |
70 | |
71 | set(ceph_conf_srcs ceph_conf.cc) | |
72 | add_executable(ceph-conf ${ceph_conf_srcs}) | |
73 | target_link_libraries(ceph-conf global) | |
74 | install(TARGETS ceph-conf DESTINATION bin) | |
75 | ||
76 | set(crushtool_srcs crushtool.cc) | |
77 | add_executable(crushtool ${crushtool_srcs}) | |
78 | target_link_libraries(crushtool global) | |
79 | install(TARGETS crushtool DESTINATION bin) | |
80 | ||
81 | set(monmaptool_srcs monmaptool.cc) | |
82 | add_executable(monmaptool ${monmaptool_srcs}) | |
83 | target_link_libraries(monmaptool global) | |
84 | install(TARGETS monmaptool DESTINATION bin) | |
85 | ||
86 | set(osdomaptool_srcs osdmaptool.cc) | |
87 | add_executable(osdmaptool ${osdomaptool_srcs}) | |
88 | target_link_libraries(osdmaptool global) | |
89 | install(TARGETS osdmaptool DESTINATION bin) | |
90 | ||
e306af50 TL |
91 | set(ceph-diff-sorted_srcs ceph-diff-sorted.cc) |
92 | add_executable(ceph-diff-sorted ${ceph-diff-sorted_srcs}) | |
adb31ebb TL |
93 | set_target_properties(ceph-diff-sorted PROPERTIES |
94 | SKIP_RPATH TRUE | |
95 | INSTALL_RPATH "") | |
e306af50 TL |
96 | install(TARGETS ceph-diff-sorted DESTINATION bin) |
97 | ||
7c673cae FG |
98 | if(WITH_TESTS) |
99 | set(ceph_psim_srcs psim.cc) | |
100 | add_executable(ceph_psim ${ceph_psim_srcs}) | |
101 | target_link_libraries(ceph_psim global) | |
102 | install(TARGETS ceph_psim DESTINATION bin) | |
103 | endif(WITH_TESTS) | |
104 | ||
105 | set(ceph_authtool_srcs ceph_authtool.cc) | |
106 | add_executable(ceph-authtool ${ceph_authtool_srcs}) | |
107 | target_link_libraries(ceph-authtool global ${EXTRALIBS} ${CRYPTO_LIBS}) | |
108 | install(TARGETS ceph-authtool DESTINATION bin) | |
109 | ||
11fdf7f2 | 110 | if(WITH_TESTS) |
9f95a23c TL |
111 | set(ceph_dedup_tool_srcs ceph_dedup_tool.cc) |
112 | add_executable(ceph-dedup-tool ${ceph_dedup_tool_srcs}) | |
113 | target_link_libraries(ceph-dedup-tool librados global cls_cas_client) | |
114 | install(TARGETS ceph-dedup-tool DESTINATION bin) | |
11fdf7f2 TL |
115 | endif(WITH_TESTS) |
116 | ||
7c673cae FG |
117 | if(WITH_CEPHFS) |
118 | add_subdirectory(cephfs) | |
119 | endif(WITH_CEPHFS) | |
120 | ||
121 | if(WITH_RBD) | |
122 | add_subdirectory(rbd) | |
123 | add_subdirectory(rbd_mirror) | |
124 | if(LINUX) | |
125 | add_subdirectory(rbd_nbd) | |
126 | endif() | |
d2e6a577 FG |
127 | if(FREEBSD) |
128 | add_subdirectory(rbd_ggate) | |
129 | endif() | |
7c673cae | 130 | endif(WITH_RBD) |
11fdf7f2 | 131 | |
9f95a23c TL |
132 | if(WITH_SEASTAR) |
133 | add_subdirectory(crimson) | |
134 | endif() | |
135 | ||
136 | add_subdirectory(immutable_object_cache) | |
11fdf7f2 | 137 | add_subdirectory(ceph-dencoder) |