# $Id: CMakeLists.zlib_cf.lib.txt 677590 2024-01-18 20:19:25Z ivanov $

NCBI_begin_lib(zcf)
  NCBI_sources(
    adler32 adler32_simd crc32 deflate infback inffast inflate inftrees trees zutil
    ncbi_z_compress uncompr gzclose gzlib gzread gzwrite
  )
  NCBI_disable_pch()
  NCBI_requires(LocalZCF)
  NCBI_project_watchers(ivanov)
NCBI_end_lib(zcf_added)

if(zcf_added AND "${HOST_CPU}" MATCHES "arm|aarch64")
  set_source_files_properties(${NCBI_CURRENT_SOURCE_DIR}/crc32.c   PROPERTIES COMPILE_OPTIONS "-march=armv8-a+crc")
  set_source_files_properties(${NCBI_CURRENT_SOURCE_DIR}/deflate.c PROPERTIES COMPILE_OPTIONS "-march=armv8-a+crc")
endif()
