diff options
Diffstat (limited to 'src/neorados/CMakeLists.txt')
-rw-r--r-- | src/neorados/CMakeLists.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/neorados/CMakeLists.txt b/src/neorados/CMakeLists.txt new file mode 100644 index 000000000..8695b48f0 --- /dev/null +++ b/src/neorados/CMakeLists.txt @@ -0,0 +1,42 @@ +add_library(neorados_objs OBJECT + RADOSImpl.cc) +compile_with_fmt(neorados_objs) +add_library(neorados_api_obj OBJECT + RADOS.cc) +compile_with_fmt(neorados_api_obj) + +add_library(libneorados STATIC + $<TARGET_OBJECTS:neorados_api_obj> + $<TARGET_OBJECTS:neorados_objs>) +target_link_libraries(libneorados PRIVATE + osdc ceph-common cls_lock_client fmt::fmt + ${BLKID_LIBRARIES} ${CRYPTO_LIBS} ${EXTRALIBS}) + +# if(ENABLE_SHARED) +# add_library(libneorados ${CEPH_SHARED} +# $<TARGET_OBJECTS:neorados_api_obj> +# $<TARGET_OBJECTS:neorados_objs> +# $<TARGET_OBJECTS:common_buffer_obj>) +# set_target_properties(libneorados PROPERTIES +# OUTPUT_NAME RADOS +# VERSION 0.0.1 +# SOVERSION 1 +# CXX_VISIBILITY_PRESET hidden +# VISIBILITY_INLINES_HIDDEN ON) +# if(NOT APPLE) +# set_property(TARGET libneorados APPEND_STRING PROPERTY +# LINK_FLAGS " -Wl,--exclude-libs,ALL") +# endif() +# else(ENABLE_SHARED) +# add_library(libneorados STATIC +# $<TARGET_OBJECTS:neorados_api_obj> +# $<TARGET_OBJECTS:neorados_objs>) +# endif(ENABLE_SHARED) +# target_link_libraries(libneorados PRIVATE +# osdc ceph-common cls_lock_client +# ${BLKID_LIBRARIES} ${CRYPTO_LIBS} ${EXTRALIBS}) +# target_link_libraries(libneorados ${rados_libs}) +# install(TARGETS libneorados DESTINATION ${CMAKE_INSTALL_LIBDIR}) +add_library(neorados_cls_fifo STATIC cls/fifo.cc) +target_link_libraries(neorados_cls_fifo PRIVATE + libneorados ceph-common fmt::fmt) |