From: Matt Benjamin Date: Sat, 28 Feb 2015 18:58:11 +0000 (-0500) Subject: cmake: build fixes X-Git-Tag: v0.94~66 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a6a6df6821e38502207d09aeeb4527be0282ed33;p=ceph.git cmake: build fixes * librbd * test/ceph_dencoder Signed-off-by: Matt Benjamin (cherry picked from commit 9ad02c93037c7c3f2cbe5c10791041253f349d54) --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5cb9b9d211a5..d523ff1ce2db 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -658,6 +658,7 @@ if(${WITH_RBD}) librbd/CopyupRequest.cc librbd/ImageCtx.cc librbd/ImageWatcher.cc + librbd/WatchNotifyTypes.cc librbd/internal.cc librbd/librbd.cc librbd/LibrbdWriteback.cc diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 6e720c79c938..73e80840949e 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -92,6 +92,8 @@ target_link_libraries(test_keys mon global ${CMAKE_DL_LIBS} ${TCMALLOC_LIBS}) ## dencoder set(dencoder_srcs encoding/ceph_dencoder.cc + ${CMAKE_SOURCE_DIR}/src/krbd.cc + ${CMAKE_SOURCE_DIR}/src/common/secret.c ${CMAKE_SOURCE_DIR}/src/common/TextTable.cc ) if(${WITH_RADOSGW}) @@ -106,11 +108,15 @@ endif(${WITH_RADOSGW}) add_executable(dencoder ${dencoder_srcs} $) target_link_libraries(dencoder librados + librbd global osd mds mon osdc + blkid + udev + keyutils ${EXTRALIBS} ${TCMALLOC_LIBS} ${CMAKE_DL_LIBS} @@ -1091,6 +1097,9 @@ target_link_libraries(multi_stress_watch librados global radostest add_executable(test_librbd librbd/test_librbd.cc librbd/test_fixture.cc + librbd/test_ImageWatcher.cc + librbd/test_internal.cc + librbd/test_main.cc $ ${CMAKE_SOURCE_DIR}/src/common/TextTable.cc ${CMAKE_SOURCE_DIR}/src/common/secret.c