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