X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Flibcephd%2FCMakeLists.txt;fp=src%2Fceph%2Fsrc%2Flibcephd%2FCMakeLists.txt;h=223184fafecc1ae043cc54a1ddfa4495a4b271fd;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/libcephd/CMakeLists.txt b/src/ceph/src/libcephd/CMakeLists.txt new file mode 100644 index 0000000..223184f --- /dev/null +++ b/src/ceph/src/libcephd/CMakeLists.txt @@ -0,0 +1,51 @@ +include(MergeStaticLibraries) + +add_library(cephd_base STATIC + libcephd.cc + ../ceph_mon.cc + ../ceph_osd.cc + ../ceph_mds.cc) + +set_target_properties(cephd_base PROPERTIES COMPILE_DEFINITIONS BUILDING_FOR_EMBEDDED) + +set(merge_libs + cephd_base + cephd_compressor + cephd_ec + cephd_cls + cephd_cls_kvs + cephd_rados + common + common_utf8 + erasure_code + global + json_spirit + kv + mds + mon + os + osd + osdc) + +if(NOT WITH_SYSTEM_ROCKSDB) + list(APPEND merge_libs ${ROCKSDB_LIBRARIES}) +endif(NOT WITH_SYSTEM_ROCKSDB) + +if(WITH_RADOSGW) + list(APPEND merge_libs cephd_rgw) +endif(WITH_RADOSGW) + +if(WITH_RBD) + list(APPEND merge_libs cephd_rbd) +endif(WITH_RBD) + +if(HAVE_ARMV8_CRC) + list(APPEND merge_libs common_crc_aarch64) +endif(HAVE_ARMV8_CRC) + +merge_static_libraries(cephd ${merge_libs}) + +# TODO: install these libraries and add them to rpm and deb packages +#install(TARGETS cephd DESTINATION ${CMAKE_INSTALL_LIBDIR}) +#install(FILES ../include/cephd/libcephd.h +# DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/cephd)