]> git.proxmox.com Git - ceph.git/blame - ceph/src/tools/CMakeLists.txt
update sources to ceph Nautilus 14.2.1
[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)
11fdf7f2 53 target_link_libraries(ceph-objectstore-tool ${FUSE_LIBRARIES})
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
91if(WITH_TESTS)
92set(ceph_psim_srcs psim.cc)
93add_executable(ceph_psim ${ceph_psim_srcs})
94target_link_libraries(ceph_psim global)
95install(TARGETS ceph_psim DESTINATION bin)
96endif(WITH_TESTS)
97
98set(ceph_authtool_srcs ceph_authtool.cc)
99add_executable(ceph-authtool ${ceph_authtool_srcs})
100target_link_libraries(ceph-authtool global ${EXTRALIBS} ${CRYPTO_LIBS})
101install(TARGETS ceph-authtool DESTINATION bin)
102
11fdf7f2
TL
103if(WITH_TESTS)
104set(cephdeduptool_srcs ceph_dedup_tool.cc)
105add_executable(cephdeduptool ${cephdeduptool_srcs})
106target_link_libraries(cephdeduptool librados global cls_cas_client)
107install(TARGETS cephdeduptool DESTINATION bin)
108endif(WITH_TESTS)
109
7c673cae
FG
110if(WITH_CEPHFS)
111 add_subdirectory(cephfs)
112endif(WITH_CEPHFS)
113
114if(WITH_RBD)
115 add_subdirectory(rbd)
116 add_subdirectory(rbd_mirror)
117 if(LINUX)
118 add_subdirectory(rbd_nbd)
119 endif()
d2e6a577
FG
120 if(FREEBSD)
121 add_subdirectory(rbd_ggate)
122 endif()
7c673cae 123endif(WITH_RBD)
11fdf7f2
TL
124
125add_subdirectory(ceph-dencoder)