]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: compile rbd-fuse
authorKefu Chai <kchai@redhat.com>
Thu, 26 May 2016 08:36:20 +0000 (16:36 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 27 May 2016 11:55:04 +0000 (19:55 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index 22ce81e466eb097b035f2d09f431a100f259a2ef..a165c6a4ebd3fb0ad5dd295977e204a5bdad24a0 100644 (file)
@@ -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_OBJECTS:heap_profiler_objs>)
-  target_link_libraries(mds ${ALLOC_LIBS})
+    $<TARGET_OBJECTS:heap_profiler_objs>
+    $<TARGET_OBJECTS:common_util_obj>)
+  target_link_libraries(mds ${ALLOC_LIBS} osdc)
   set(ceph_mds_srcs
     ceph_mds.cc)
   add_executable(ceph-mds ${ceph_mds_srcs}
     $<TARGET_OBJECTS:common_util_obj>)
-  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)