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