blob: 8695b48f0f924fb757a2dc34326a69591eeb05a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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)
|