mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
63 lines
1.0 KiB
CMake
63 lines
1.0 KiB
CMake
## This is a CMake file, part of Unidata's netCDF package.
|
|
# Copyright 2018, see the COPYRIGHT file for more information.
|
|
#
|
|
# This builds the libzarr dispatch layer.
|
|
#
|
|
# Dennis Heimbigner
|
|
|
|
#add_compile_options("/showincludes")
|
|
|
|
# The source files for the HDF5 dispatch layer.
|
|
SET(libnczarr_SOURCES
|
|
zarr.c
|
|
zattr.c
|
|
zcache.c
|
|
zchunking.c
|
|
zclose.c
|
|
zcreate.c
|
|
zcvt.c
|
|
zdim.c
|
|
zdispatch.c
|
|
zfile.c
|
|
zfilter.c
|
|
zgrp.c
|
|
zinternal.c
|
|
zjson.c
|
|
zmap.c
|
|
zmap_nz4.c
|
|
zmap_nzf.c
|
|
zodom.c
|
|
zopen.c
|
|
zprov.c
|
|
zsync.c
|
|
ztype.c
|
|
zutil.c
|
|
zvar.c
|
|
zwalk.c
|
|
zdebug.c
|
|
zarr.h
|
|
zcache.h
|
|
zchunking.h
|
|
zdispatch.h
|
|
zincludes.h
|
|
zinternal.h
|
|
zjson.h
|
|
zmap.h
|
|
zodom.h
|
|
zprovenance.h
|
|
zdebug.h
|
|
)
|
|
|
|
IF(ENABLE_S3_SDK)
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
SET(libnczarr_SOURCES ${libnczarr_SOURCES} zs3sdk.cpp zmap_s3sdk.c awsincludes.h zs3sdk.h)
|
|
ENDIF()
|
|
|
|
# Build the Zarr dispatch layer as a library that will be included in
|
|
# the netCDF library.
|
|
add_library(nczarr OBJECT ${libnczarr_SOURCES})
|
|
|
|
# Remember to package this file for CMake builds.
|
|
ADD_EXTRA_DIST(${libnczarr_SOURCES} CMakeLists.txt)
|
|
|