]> git.proxmox.com Git - ceph.git/blame - ceph/src/tools/CMakeLists.txt
update sources to v12.1.3
[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
29add_executable(ceph-monstore-tool ceph_monstore_tool.cc)
31f18b77 30target_link_libraries(ceph-monstore-tool os global Boost::program_options)
7c673cae
FG
31install(TARGETS ceph-monstore-tool DESTINATION bin)
32install(PROGRAMS
33 ceph-monstore-update-crush.sh
34 DESTINATION ${CMAKE_INSTALL_LIBDIR}/ceph)
35endif(WITH_TESTS)
36
37add_executable(ceph-objectstore-tool
38 ceph_objectstore_tool.cc
39 rebuild_mondb.cc
40 RadosDump.cc)
31f18b77 41target_link_libraries(ceph-objectstore-tool osd os global Boost::program_options ${CMAKE_DL_LIBS})
7c673cae
FG
42if(WITH_FUSE)
43 target_link_libraries(ceph-objectstore-tool fuse)
44endif(WITH_FUSE)
45install(TARGETS ceph-objectstore-tool DESTINATION bin)
46
47if(WITH_LIBCEPHFS)
48if(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)
52endif(WITH_TESTS)
53endif(WITH_LIBCEPHFS)
54
55if(WITH_TESTS)
56add_executable(ceph-kvstore-tool ceph_kvstore_tool.cc)
57target_link_libraries(ceph-kvstore-tool os global)
58install(TARGETS ceph-kvstore-tool DESTINATION bin)
59endif(WITH_TESTS)
60
61set(ceph_conf_srcs ceph_conf.cc)
62add_executable(ceph-conf ${ceph_conf_srcs})
63target_link_libraries(ceph-conf global)
64install(TARGETS ceph-conf DESTINATION bin)
65
66set(crushtool_srcs crushtool.cc)
67add_executable(crushtool ${crushtool_srcs})
68target_link_libraries(crushtool global)
69install(TARGETS crushtool DESTINATION bin)
70
71set(monmaptool_srcs monmaptool.cc)
72add_executable(monmaptool ${monmaptool_srcs})
73target_link_libraries(monmaptool global)
74install(TARGETS monmaptool DESTINATION bin)
75
76set(osdomaptool_srcs osdmaptool.cc)
77add_executable(osdmaptool ${osdomaptool_srcs})
78target_link_libraries(osdmaptool global)
79install(TARGETS osdmaptool DESTINATION bin)
80
81if(WITH_TESTS)
82set(ceph_psim_srcs psim.cc)
83add_executable(ceph_psim ${ceph_psim_srcs})
84target_link_libraries(ceph_psim global)
85install(TARGETS ceph_psim DESTINATION bin)
86endif(WITH_TESTS)
87
88set(ceph_authtool_srcs ceph_authtool.cc)
89add_executable(ceph-authtool ${ceph_authtool_srcs})
90target_link_libraries(ceph-authtool global ${EXTRALIBS} ${CRYPTO_LIBS})
91install(TARGETS ceph-authtool DESTINATION bin)
92
93if(WITH_CEPHFS)
94 add_subdirectory(cephfs)
95endif(WITH_CEPHFS)
96
97if(WITH_RBD)
98 add_subdirectory(rbd)
99 add_subdirectory(rbd_mirror)
100 if(LINUX)
101 add_subdirectory(rbd_nbd)
102 endif()
d2e6a577
FG
103 if(FREEBSD)
104 add_subdirectory(rbd_ggate)
105 endif()
7c673cae 106endif(WITH_RBD)