Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / tools / cephfs / CMakeLists.txt
1 set(cephfs_journal_tool_srcs
2   cephfs-journal-tool.cc
3   JournalTool.cc
4   JournalFilter.cc
5   JournalScanner.cc
6   EventOutput.cc
7   Dumper.cc
8   Resetter.cc
9   RoleSelector.cc
10   MDSUtility.cc)
11 add_executable(cephfs-journal-tool ${cephfs_journal_tool_srcs})
12 target_link_libraries(cephfs-journal-tool librados mds osdc global
13   ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
14
15 set(cephfs_table_tool_srcs
16   cephfs-table-tool.cc
17   TableTool.cc
18   RoleSelector.cc
19   MDSUtility.cc)
20 add_executable(cephfs-table-tool ${cephfs_table_tool_srcs})
21 target_link_libraries(cephfs-table-tool librados mds osdc global
22   ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
23
24 set(cephfs_data_scan_srcs
25   cephfs-data-scan.cc
26   DataScan.cc
27   RoleSelector.cc
28   PgFiles.cc
29   MDSUtility.cc)
30 add_executable(cephfs-data-scan ${cephfs_data_scan_srcs})
31 target_link_libraries(cephfs-data-scan librados cephfs mds osdc global
32   cls_cephfs_client
33   ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
34
35 install(TARGETS
36   cephfs-journal-tool
37   cephfs-table-tool
38   cephfs-data-scan
39   DESTINATION bin)