]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | include(MergeStaticLibraries) |
2 | ||
3 | add_library(cephd_base STATIC | |
4 | libcephd.cc | |
5 | ../ceph_mon.cc | |
6 | ../ceph_osd.cc | |
7 | ../ceph_mds.cc) | |
8 | ||
9 | set_target_properties(cephd_base PROPERTIES COMPILE_DEFINITIONS BUILDING_FOR_EMBEDDED) | |
10 | ||
11 | set(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 | ||
30 | if(NOT WITH_SYSTEM_ROCKSDB) | |
31 | list(APPEND merge_libs ${ROCKSDB_LIBRARIES}) | |
32 | endif(NOT WITH_SYSTEM_ROCKSDB) | |
33 | ||
c07f9fc5 FG |
34 | if(WITH_RADOSGW) |
35 | list(APPEND merge_libs cephd_rgw) | |
36 | endif(WITH_RADOSGW) | |
37 | ||
38 | if(WITH_RBD) | |
39 | list(APPEND merge_libs cephd_rbd) | |
40 | endif(WITH_RBD) | |
41 | ||
7c673cae FG |
42 | if(HAVE_ARMV8_CRC) |
43 | list(APPEND merge_libs common_crc_aarch64) | |
44 | endif(HAVE_ARMV8_CRC) | |
45 | ||
46 | merge_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) |