so we don't need to recompile it when using it.
Signed-off-by: Kefu Chai <kchai@redhat.com>
set(dencoder_srcs
test/encoding/ceph_dencoder.cc
$<TARGET_OBJECTS:krbd_objs>
- common/secret.c
+ $<TARGET_OBJECTS:parse_secret_objs>
common/TextTable.cc
)
if(${WITH_RADOSGW})
detailed_stat_collector.cc
bencher.cc
${CMAKE_SOURCE_DIR}/src/common/TextTable.cc
- ${CMAKE_SOURCE_DIR}/src/common/secret.c
)
add_executable(ceph_smalliobenchrbd
${smalliobenchrbd_srcs}
+ $<TARGET_OBJECTS:parse_secret_objs>
)
target_link_libraries(ceph_smalliobenchrbd
librbd
add_executable(ceph_test_cls_rbd
test_cls_rbd.cc
${CMAKE_SOURCE_DIR}/src/common/TextTable.cc
- ${CMAKE_SOURCE_DIR}/src/common/secret.c
+ $<TARGET_OBJECTS:parse_secret_objs>
)
set_target_properties(ceph_test_cls_rbd PROPERTIES COMPILE_FLAGS
${UNITTEST_CXX_FLAGS})
fsx.cc
$<TARGET_OBJECTS:krbd_objs>
${CMAKE_SOURCE_DIR}/src/common/TextTable.cc
- ${CMAKE_SOURCE_DIR}/src/common/secret.c
+ $<TARGET_OBJECTS:parse_secret_objs>
)
target_link_libraries(ceph_test_librbd_fsx
librbd