Blosc.cmake 612 B

123456789101112131415161718192021
  1. if(BUILD_SHARED_LIBS)
  2. set(_build_shared ON)
  3. set(_build_static OFF)
  4. else()
  5. set(_build_shared OFF)
  6. set(_build_static ON)
  7. endif()
  8. add_cmake_project(Blosc
  9. URL https://github.com/Blosc/c-blosc/archive/8724c06e3da90f10986a253814af18ca081d8de0.zip
  10. URL_HASH SHA256=53986fd04210b3d94124b7967c857f9766353e576a69595a9393999e0712c035
  11. CMAKE_ARGS
  12. -DCMAKE_POSITION_INDEPENDENT_CODE=ON
  13. -DBUILD_SHARED=${_build_shared}
  14. -DBUILD_STATIC=${_build_static}
  15. -DBUILD_TESTS=OFF
  16. -DBUILD_BENCHMARKS=OFF
  17. -DPREFER_EXTERNAL_ZLIB=ON
  18. )
  19. set(DEP_Blosc_DEPENDS ZLIB)