]>
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 FG |
9 | add_executable(rados ${rados_srcs}) |
10 | target_link_libraries(rados librados global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} radosstriper) | |
11 | install(TARGETS rados DESTINATION bin) | |
12 | ||
13 | if(WITH_TESTS) | |
14 | add_executable(ceph_scratchtool scratchtool.c) | |
15 | target_link_libraries(ceph_scratchtool librados global) | |
16 | install(TARGETS ceph_scratchtool DESTINATION bin) | |
17 | ||
18 | add_executable(ceph_scratchtoolpp scratchtoolpp.cc) | |
19 | target_link_libraries(ceph_scratchtoolpp librados global) | |
20 | install(TARGETS ceph_scratchtoolpp DESTINATION bin) | |
21 | ||
22 | add_executable(ceph_radosacl radosacl.cc) | |
23 | target_link_libraries(ceph_radosacl librados global) | |
24 | install(TARGETS ceph_radosacl DESTINATION bin) | |
25 | ||
26 | add_executable(ceph-osdomap-tool ceph_osdomap_tool.cc) | |
31f18b77 | 27 | target_link_libraries(ceph-osdomap-tool os global Boost::program_options) |
7c673cae FG |
28 | install(TARGETS ceph-osdomap-tool DESTINATION bin) |
29 | ||
3efd9988 FG |
30 | add_executable(ceph-monstore-tool |
31 | ceph_monstore_tool.cc | |
32 | ../mgr/mgr_commands.cc) | |
31f18b77 | 33 | target_link_libraries(ceph-monstore-tool os global Boost::program_options) |
7c673cae FG |
34 | install(TARGETS ceph-monstore-tool DESTINATION bin) |
35 | install(PROGRAMS | |
36 | ceph-monstore-update-crush.sh | |
37 | DESTINATION ${CMAKE_INSTALL_LIBDIR}/ceph) | |
38 | endif(WITH_TESTS) | |
39 | ||
40 | add_executable(ceph-objectstore-tool | |
41 | ceph_objectstore_tool.cc | |
42 | rebuild_mondb.cc | |
43 | RadosDump.cc) | |
31f18b77 | 44 | target_link_libraries(ceph-objectstore-tool osd os global Boost::program_options ${CMAKE_DL_LIBS}) |
7c673cae FG |
45 | if(WITH_FUSE) |
46 | target_link_libraries(ceph-objectstore-tool fuse) | |
47 | endif(WITH_FUSE) | |
48 | install(TARGETS ceph-objectstore-tool DESTINATION bin) | |
49 | ||
50 | if(WITH_LIBCEPHFS) | |
51 | if(WITH_TESTS) | |
52 | add_executable(ceph-client-debug ceph-client-debug.cc) | |
53 | target_link_libraries(ceph-client-debug cephfs global client) | |
54 | install(TARGETS ceph-client-debug DESTINATION bin) | |
55 | endif(WITH_TESTS) | |
56 | endif(WITH_LIBCEPHFS) | |
57 | ||
58 | if(WITH_TESTS) | |
59 | add_executable(ceph-kvstore-tool ceph_kvstore_tool.cc) | |
60 | target_link_libraries(ceph-kvstore-tool os global) | |
61 | install(TARGETS ceph-kvstore-tool DESTINATION bin) | |
62 | endif(WITH_TESTS) | |
63 | ||
64 | set(ceph_conf_srcs ceph_conf.cc) | |
65 | add_executable(ceph-conf ${ceph_conf_srcs}) | |
66 | target_link_libraries(ceph-conf global) | |
67 | install(TARGETS ceph-conf DESTINATION bin) | |
68 | ||
69 | set(crushtool_srcs crushtool.cc) | |
70 | add_executable(crushtool ${crushtool_srcs}) | |
71 | target_link_libraries(crushtool global) | |
72 | install(TARGETS crushtool DESTINATION bin) | |
73 | ||
74 | set(monmaptool_srcs monmaptool.cc) | |
75 | add_executable(monmaptool ${monmaptool_srcs}) | |
76 | target_link_libraries(monmaptool global) | |
77 | install(TARGETS monmaptool DESTINATION bin) | |
78 | ||
79 | set(osdomaptool_srcs osdmaptool.cc) | |
80 | add_executable(osdmaptool ${osdomaptool_srcs}) | |
81 | target_link_libraries(osdmaptool global) | |
82 | install(TARGETS osdmaptool DESTINATION bin) | |
83 | ||
84 | if(WITH_TESTS) | |
85 | set(ceph_psim_srcs psim.cc) | |
86 | add_executable(ceph_psim ${ceph_psim_srcs}) | |
87 | target_link_libraries(ceph_psim global) | |
88 | install(TARGETS ceph_psim DESTINATION bin) | |
89 | endif(WITH_TESTS) | |
90 | ||
91 | set(ceph_authtool_srcs ceph_authtool.cc) | |
92 | add_executable(ceph-authtool ${ceph_authtool_srcs}) | |
93 | target_link_libraries(ceph-authtool global ${EXTRALIBS} ${CRYPTO_LIBS}) | |
94 | install(TARGETS ceph-authtool DESTINATION bin) | |
95 | ||
96 | if(WITH_CEPHFS) | |
97 | add_subdirectory(cephfs) | |
98 | endif(WITH_CEPHFS) | |
99 | ||
100 | if(WITH_RBD) | |
101 | add_subdirectory(rbd) | |
102 | add_subdirectory(rbd_mirror) | |
103 | if(LINUX) | |
104 | add_subdirectory(rbd_nbd) | |
105 | endif() | |
d2e6a577 FG |
106 | if(FREEBSD) |
107 | add_subdirectory(rbd_ggate) | |
108 | endif() | |
7c673cae | 109 | endif(WITH_RBD) |