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