From: Kefu Chai Date: Thu, 26 May 2016 08:36:20 +0000 (+0800) Subject: cmake: compile rbd-fuse X-Git-Tag: v11.0.0~390^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2242194dffcbe35d463471708de72547cc89aa89;p=ceph.git cmake: compile rbd-fuse Signed-off-by: Kefu Chai --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 22ce81e466eb..a165c6a4ebd3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -945,13 +945,14 @@ if(${WITH_MDS}) ${CMAKE_SOURCE_DIR}/src/common/TrackedOp.cc ${CMAKE_SOURCE_DIR}/src/osdc/Journaler.cc) add_library(mds ${mds_srcs} - $) - target_link_libraries(mds ${ALLOC_LIBS}) + $ + $) + target_link_libraries(mds ${ALLOC_LIBS} osdc) set(ceph_mds_srcs ceph_mds.cc) add_executable(ceph-mds ${ceph_mds_srcs} $) - target_link_libraries(ceph-mds mds osdc ${CMAKE_DL_LIBS} global + target_link_libraries(ceph-mds mds ${CMAKE_DL_LIBS} global ${Boost_THREAD_LIBRARY}) install(TARGETS ceph-mds DESTINATION bin) endif(${WITH_MDS}) @@ -1160,7 +1161,15 @@ if(${WITH_RBD}) tools/rbd_mirror/image_sync/SyncPointCreateRequest.cc tools/rbd_mirror/image_sync/SyncPointPruneRequest.cc) add_library(rbd_mirror_internal STATIC ${rbd_mirror_internal}) - + + if(WITH_FUSE) + add_executable(rbd-fuse + rbd_fuse/rbd-fuse.cc) + target_link_libraries(rbd-fuse + librbd ${FUSE_LIBRARIES}) + install(TARGETS rbd-fuse DESTINATION bin) + endif() + add_executable(rbd-mirror tools/rbd_mirror/main.cc common/ContextCompletion.cc)