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