X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Frbd_replay%2FCMakeLists.txt;fp=src%2Fceph%2Fsrc%2Frbd_replay%2FCMakeLists.txt;h=2e2e176d80b389fb32eb21cfbbc87c465c1a1af4;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/rbd_replay/CMakeLists.txt b/src/ceph/src/rbd_replay/CMakeLists.txt new file mode 100644 index 0000000..2e2e176 --- /dev/null +++ b/src/ceph/src/rbd_replay/CMakeLists.txt @@ -0,0 +1,43 @@ +set(librbd_replay_types_srcs + ActionTypes.cc) +add_library(rbd_replay_types STATIC ${librbd_replay_types_srcs}) + +set(librbd_replay_srcs + actions.cc + BufferReader.cc + ImageNameMap.cc + PendingIO.cc + rbd_loc.cc + Replayer.cc) +add_library(rbd_replay STATIC ${librbd_replay_srcs}) +target_link_libraries(rbd_replay LINK_PRIVATE librbd librados global) + +add_executable(rbd-replay + rbd-replay.cc) +target_link_libraries(rbd-replay + librbd librados global rbd_replay rbd_replay_types ceph-common) +install(TARGETS rbd-replay DESTINATION bin) + +set(librbd_replay_ios_srcs + ios.cc) +add_library(rbd_replay_ios STATIC ${librbd_replay_ios_srcs}) +target_link_libraries(rbd_replay_ios librbd librados global) + +if(HAVE_BABELTRACE) + add_executable(rbd-replay-prep + rbd-replay-prep.cc) + target_link_libraries(rbd-replay-prep + rbd_replay + rbd_replay_ios + rbd_replay_types + librbd + librados + ceph-common + global + babeltrace + babeltrace-ctf + Boost::date_time + ) + install(TARGETS rbd-replay-prep DESTINATION bin) +endif(HAVE_BABELTRACE) +