view Resources/CMake/CRC32C.cmake @ 54:509334672b6b default tip

updated copyright, as Orthanc Team now replaces Osimis
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 30 May 2024 22:48:01 +0200
parents f9fe97e893c0
children
line wrap: on
line source

set(CRC32C_SOURCES_DIR ${CMAKE_BINARY_DIR}/crc32c-1.0.6)
set(CRC32C_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/dicom-web/crc32c-1.0.6.tar.gz")
set(CRC32C_MD5 "e7eaad378aeded322d27a35b0011d626")
DownloadPackage(${CRC32C_MD5} ${CRC32C_URL} "${CRC32C_SOURCES_DIR}")

configure_file(
  ${CRC32C_SOURCES_DIR}/src/crc32c_config.h.in
  ${AUTOGENERATED_DIR}/crc32c/crc32c_config.h
  )

include_directories(
  ${CRC32C_SOURCES_DIR}/include
  )

set(CRC32C_SOURCES
  ${CRC32C_SOURCES_DIR}/src/crc32c.cc
  ${CRC32C_SOURCES_DIR}/src/crc32c_arm64.cc
  ${CRC32C_SOURCES_DIR}/src/crc32c_portable.cc
  ${CRC32C_SOURCES_DIR}/src/crc32c_sse42.cc
  )