]> git.proxmox.com Git - ceph.git/blame - ceph/src/libcephd/CMakeLists.txt
bump version to 12.2.7-pve1
[ceph.git] / ceph / src / libcephd / CMakeLists.txt
CommitLineData
7c673cae
FG
1include(MergeStaticLibraries)
2
3add_library(cephd_base STATIC
4 libcephd.cc
5 ../ceph_mon.cc
6 ../ceph_osd.cc
7 ../ceph_mds.cc)
8
9set_target_properties(cephd_base PROPERTIES COMPILE_DEFINITIONS BUILDING_FOR_EMBEDDED)
10
11set(merge_libs
12 cephd_base
13 cephd_compressor
14 cephd_ec
15 cephd_cls
16 cephd_cls_kvs
17 cephd_rados
7c673cae
FG
18 common
19 common_utf8
20 erasure_code
21 global
22 json_spirit
23 kv
24 mds
25 mon
26 os
27 osd
28 osdc)
29
30if(NOT WITH_SYSTEM_ROCKSDB)
31 list(APPEND merge_libs ${ROCKSDB_LIBRARIES})
32endif(NOT WITH_SYSTEM_ROCKSDB)
33
c07f9fc5
FG
34if(WITH_RADOSGW)
35 list(APPEND merge_libs cephd_rgw)
36endif(WITH_RADOSGW)
37
38if(WITH_RBD)
39 list(APPEND merge_libs cephd_rbd)
40endif(WITH_RBD)
41
7c673cae
FG
42if(HAVE_ARMV8_CRC)
43 list(APPEND merge_libs common_crc_aarch64)
44endif(HAVE_ARMV8_CRC)
45
46merge_static_libraries(cephd ${merge_libs})
47
48# TODO: install these libraries and add them to rpm and deb packages
49#install(TARGETS cephd DESTINATION ${CMAKE_INSTALL_LIBDIR})
c07f9fc5
FG
50#install(FILES ../include/cephd/libcephd.h
51# DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/cephd)