diff options
author | Ali Maredia <amaredia@redhat.com> | 2015-08-17 22:26:47 +0200 |
---|---|---|
committer | Ali Maredia <amaredia@redhat.com> | 2015-09-03 17:37:30 +0200 |
commit | bf82c65e330e36971ce182c7eefaa2a5e14f9d9e (patch) | |
tree | ecb0b526884d2f7527706762b7744467f856207f /src/erasure-code/shec | |
parent | README.md: Add basic CMake instructions (diff) | |
download | ceph-bf82c65e330e36971ce182c7eefaa2a5e14f9d9e.tar.xz ceph-bf82c65e330e36971ce182c7eefaa2a5e14f9d9e.zip |
cmake: check_TESTPROGRAMS tests running
Make check working, accept rocksdb tests. Clean up coming.
Signed-off-by: Ali Maredia <amaredia@redhat.com>
Diffstat (limited to 'src/erasure-code/shec')
-rw-r--r-- | src/erasure-code/shec/CMakeLists.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/erasure-code/shec/CMakeLists.txt b/src/erasure-code/shec/CMakeLists.txt new file mode 100644 index 00000000000..260f4d21838 --- /dev/null +++ b/src/erasure-code/shec/CMakeLists.txt @@ -0,0 +1,36 @@ +#shec plugin + +set(shec_srcs + ${CMAKE_SOURCE_DIR}/src/erasure-code/ErasureCode.cc + ErasureCodePluginShec.cc + ErasureCodeShec.cc + ErasureCodeShecTableCache.cc + determinant.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/jerasure/src/cauchy.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/jerasure/src/galois.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/jerasure/src/jerasure.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/jerasure/src/liberation.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/jerasure/src/reed_sol.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/src/gf_wgen.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/src/gf_method.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/src/gf_w16.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/src/gf.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/src/gf_w32.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/src/gf_w64.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/src/gf_w128.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/src/gf_general.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/src/gf_w4.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/src/gf_rand.c + ${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/src/gf_w8.c) + +include_directories(${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/jerasure/include) +include_directories(${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure/gf-complete/include) +include_directories(${CMAKE_SOURCE_DIR}/src/erasure-code/jerasure) +include_directories(${CMAKE_SOURCE_DIR}/src/erasure-code/shec) +add_library(ec_shec_generic SHARED ${shec_srcs}) +target_link_libraries(ec_shec_generic crush pthread) +add_dependencies(ec_shec_generic ${CMAKE_SOURCE_DIR}/src/ceph_ver.h) +set_target_properties(ec_shec_generic PROPERTIES VERSION 1.0.0 SOVERSION 1) +install(TARGETS ec_shec_generic DESTINATION lib/erasure-code) + +#TODO:build libec_shec_neon, libec_shec+sse3, libec_shec_sse4 libraries |