X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Ferasure-code%2Fshec%2FCMakeLists.txt;fp=src%2Fceph%2Fsrc%2Ferasure-code%2Fshec%2FCMakeLists.txt;h=d5f8e15ada4a694b46827d6fd7920edd1803f5c8;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/erasure-code/shec/CMakeLists.txt b/src/ceph/src/erasure-code/shec/CMakeLists.txt new file mode 100644 index 0000000..d5f8e15 --- /dev/null +++ b/src/ceph/src/erasure-code/shec/CMakeLists.txt @@ -0,0 +1,41 @@ +#shec plugin + +include_directories(.) + +set(shec_utils_srcs + ${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc + ErasureCodePluginShec.cc + ErasureCodeShec.cc + ErasureCodeShecTableCache.cc + determinant.c) + +add_library(shec_utils OBJECT ${shec_utils_srcs}) +add_dependencies(shec_utils ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) + +set(ec_shec_objs + $ + $ + $) + +add_library(ec_shec SHARED ${ec_shec_objs}) +add_dependencies(ec_shec ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) +set_target_properties(ec_shec PROPERTIES + INSTALL_RPATH "") +target_link_libraries(ec_shec ${EXTRALIBS}) +install(TARGETS ec_shec DESTINATION ${erasure_plugin_dir}) + +# legacy libraries +foreach(flavor ${jerasure_legacy_flavors}) + set(plugin_name "ec_shec_${flavor}") + add_library(${plugin_name} SHARED ${ec_shec_objs}) + set_target_properties(${plugin_name} PROPERTIES + INSTALL_RPATH "") + install(TARGETS ${plugin_name} DESTINATION ${erasure_plugin_dir}) + add_dependencies(ec_shec ${plugin_name}) +endforeach() + +if(WITH_EMBEDDED) + # note we rely on the fact this will always be statically linked with jerasure + add_library(cephd_ec_shec STATIC ${shec_utils_srcs}) + set_target_properties(cephd_ec_shec PROPERTIES COMPILE_DEFINITIONS BUILDING_FOR_EMBEDDED) +endif()