]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: add gtest to ceph_test_snap_mapper 9887/head
authorAli Maredia <amaredia@redhat.com>
Wed, 22 Jun 2016 21:41:59 +0000 (17:41 -0400)
committerKefu Chai <kchai@redhat.com>
Thu, 23 Jun 2016 07:23:59 +0000 (15:23 +0800)
Signed-off-by: Ali Maredia <amaredia@redhat.com>
src/test/CMakeLists.txt

index 5e3fb245d7cdd01b9b900f0a0913e616db6963fb..44545b0018d65fc2dad8a03e35fb9d7c514042cf 100644 (file)
@@ -416,7 +416,8 @@ target_link_libraries(ceph_test_keys mon global ${CMAKE_DL_LIBS})
 add_executable(ceph_test_snap_mapper EXCLUDE_FROM_ALL
   test_snap_mapper.cc
   )
-target_link_libraries(ceph_test_snap_mapper osd global ${BLKID_LIBRARIES})
+target_link_libraries(ceph_test_snap_mapper osd global ${BLKID_LIBRARIES} ${UNITTEST_LIBS})
+set_target_properties(ceph_test_snap_mapper PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
 
 add_executable(ceph_test_stress_watch
   test_stress_watch.cc