diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-21 11:54:28 +0000 |
commit | e6918187568dbd01842d8d1d2c808ce16a894239 (patch) | |
tree | 64f88b554b444a49f656b6c656111a145cbbaa28 /src/neorados/CMakeLists.txt | |
parent | Initial commit. (diff) | |
download | ceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip |
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/neorados/CMakeLists.txt')
-rw-r--r-- | src/neorados/CMakeLists.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/neorados/CMakeLists.txt b/src/neorados/CMakeLists.txt new file mode 100644 index 000000000..c66043ac9 --- /dev/null +++ b/src/neorados/CMakeLists.txt @@ -0,0 +1,41 @@ +add_library(neorados_objs OBJECT + RADOSImpl.cc) +target_compile_definitions(neorados_objs PRIVATE + $<TARGET_PROPERTY:fmt::fmt,INTERFACE_COMPILE_DEFINITIONS>) +add_library(neorados_api_obj OBJECT + RADOS.cc) +target_compile_definitions(neorados_api_obj PRIVATE + $<TARGET_PROPERTY:fmt::fmt,INTERFACE_COMPILE_DEFINITIONS>) + +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}) |