summaryrefslogtreecommitdiffstats
path: root/src/test/cls_rgw/CMakeLists.txt
blob: 67b8beb6c4be621faa4dc0c006d370536fb4f2d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if(${WITH_RADOSGW})
  add_executable(ceph_test_cls_rgw
    test_cls_rgw.cc
    )
  target_link_libraries(ceph_test_cls_rgw
    cls_rgw_client
    librados
    global
    ${UNITTEST_LIBS}
    ${EXTRALIBS}
    ${BLKID_LIBRARIES}
    ${CMAKE_DL_LIBS}
    radostest-cxx)
  install(TARGETS
    ceph_test_cls_rgw
    DESTINATION ${CMAKE_INSTALL_BINDIR})

  add_executable(ceph_test_cls_rgw_stats test_cls_rgw_stats.cc
	  $<TARGET_OBJECTS:unit-main>)
  target_link_libraries(ceph_test_cls_rgw_stats cls_rgw_client global
	  librados ${UNITTEST_LIBS} radostest-cxx)
  install(TARGETS ceph_test_cls_rgw_stats DESTINATION ${CMAKE_INSTALL_BINDIR})
endif(${WITH_RADOSGW})