]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: compile ceph_test_rbd_mirror_image_replay
authorKefu Chai <kchai@redhat.com>
Wed, 8 Jun 2016 18:48:58 +0000 (02:48 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 9 Jun 2016 03:11:26 +0000 (11:11 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/rbd_mirror/CMakeLists.txt

index cbde5656a2fe3540a68ee15d89bc8d7d37732ee8..ae41174babb4c622d6bce07ea9bde0a0870a0046 100644 (file)
@@ -79,3 +79,29 @@ target_link_libraries(ceph_test_rbd_mirror_random_write
   librbd librados global keyutils
   )
 
+add_executable(ceph_test_rbd_mirror_image_replay
+  image_replay.cc
+  $<TARGET_OBJECTS:parse_secret_objs>)
+set_target_properties(ceph_test_rbd_mirror_image_replay PROPERTIES
+  COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
+target_link_libraries(ceph_test_rbd_mirror_image_replay
+  rbd_mirror
+  rados_test_stub
+  rbd_mirror_internal
+  rbd_internal
+  rbd_api
+  journal
+  cls_rbd_client
+  cls_lock_client
+  cls_journal_client
+  rbd_types
+  librados
+  osdc
+  global
+  radostest
+  ${UNITTEST_LIBS})
+
+install(TARGETS
+  ceph_test_rbd_mirror
+  ceph_test_rbd_mirror_random_write
+  DESTINATION ${CMAKE_INSTALL_BINDIR})