]> git.proxmox.com Git - ceph.git/blame - ceph/src/tools/ceph-dencoder/CMakeLists.txt
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / tools / ceph-dencoder / CMakeLists.txt
CommitLineData
11fdf7f2
TL
1## dencoder
2set_source_files_properties(
3 ceph_dencoder.cc
4 APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/src/include/ceph_ver.h)
5
6if(HAS_VTA)
7 set_source_files_properties(ceph_dencoder.cc
8 PROPERTIES COMPILE_FLAGS -fno-var-tracking-assignments)
9endif()
10
11set(dencoder_srcs
12 ceph_dencoder.cc
13 $<TARGET_OBJECTS:common_texttable_obj>)
14if(WITH_RADOSGW)
15 list(APPEND dencoder_srcs
16 ${CMAKE_SOURCE_DIR}/src/rgw/rgw_dencoder.cc)
17endif()
18
19add_executable(ceph-dencoder ${dencoder_srcs})
20
21if(WITH_RADOSGW)
22 list(APPEND DENCODER_EXTRALIBS
23 rgw_a
24 cls_rgw_client)
25 if(WITH_RADOSGW_AMQP_ENDPOINT)
26 list(APPEND DENCODER_EXTRALIBS
27 rabbitmq)
28 endif()
29endif()
30
31if(WITH_RBD)
32 list(APPEND DENCODER_EXTRALIBS
33 cls_rbd_client
34 rbd_mirror_types
35 rbd_types
36 rbd_replay_types)
37 if(WITH_KRBD)
38 list(APPEND DENCODER_EXTRALIBS
39 krbd)
40 endif()
41endif()
42
43if(WITH_CEPHFS)
44 list(APPEND DENCODER_EXTRALIBS
45 mds)
46endif()
47
48target_link_libraries(ceph-dencoder
49 global
50 os
51 osd
52 mon
53 journal
54 ${DENCODER_EXTRALIBS}
55 cls_lock_client
56 cls_refcount_client
57 cls_log_client
58 cls_version_client
59 cls_user_client
60 cls_journal_client
61 cls_timeindex_client
62 ${EXTRALIBS}
63 ${CMAKE_DL_LIBS})
64install(TARGETS ceph-dencoder DESTINATION bin)