2018-12-07 05:21:03 +08:00
|
|
|
# Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
|
|
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
|
|
|
|
# 2015, 2016, 2017, 2018
|
|
|
|
# University Corporation for Atmospheric Research/Unidata.
|
|
|
|
|
|
|
|
# See netcdf-c/COPYRIGHT file for more info.
|
2017-03-09 08:01:10 +08:00
|
|
|
SET(dap2_SOURCES constraints.c dapcvt.c dapodom.c daputil.c ncdaperr.c cdf.c cache.c dapdump.c dapdebug.c dapattr.c ncd2dispatch.c getvara.c dceconstraints.c dcetab.c dceparse.c dcelex.c)
|
2012-07-25 06:53:58 +08:00
|
|
|
|
2014-06-12 05:51:31 +08:00
|
|
|
add_library(dap2 OBJECT ${dap2_SOURCES})
|
2012-07-25 06:53:58 +08:00
|
|
|
|
2023-09-29 22:42:19 +08:00
|
|
|
IF(STATUS_PARALLEL)
|
|
|
|
target_link_libraries(dap2 PUBLIC MPI::MPI_C)
|
|
|
|
ENDIF(STATUS_PARALLEL)
|
|
|
|
|
2012-07-25 06:53:58 +08:00
|
|
|
###
|
|
|
|
# Options related to the man page generation.
|
|
|
|
###
|
|
|
|
|
|
|
|
###
|
|
|
|
# The C API man page.
|
|
|
|
###
|
|
|
|
|
|
|
|
set(man_MANS netcdf.3)
|
|
|
|
|
|
|
|
set(ARGS_MANPAGE -DAPI=C)
|
|
|
|
|
2020-08-18 09:15:47 +08:00
|
|
|
IF (USE_HDF5)
|
2014-04-22 01:15:33 +08:00
|
|
|
SET(ARGS_MANPAGE ${ARGS_MANPAGE} -DNETCDF4=TRUE)
|
2020-08-18 09:15:47 +08:00
|
|
|
ENDIF(USE_HDF5)
|
2012-07-25 06:53:58 +08:00
|
|
|
|
|
|
|
IF (BUILD_DAP)
|
2014-04-22 01:15:33 +08:00
|
|
|
SET(ARGS_MANPAGE ${ARGS_MANPAGE} -DDAP=TRUE)
|
2012-07-25 06:53:58 +08:00
|
|
|
ENDIF(BUILD_DAP)
|
|
|
|
|
|
|
|
IF (BUILD_PARALLEL)
|
2014-04-22 01:15:33 +08:00
|
|
|
SET(ARGS_MANPAGE ${ARGS_MANPAGE} -DPARALLEL_IO=TRUE)
|
2012-07-25 06:53:58 +08:00
|
|
|
ENDIF(BUILD_PARALLEL)
|
|
|
|
|
2013-06-04 00:42:04 +08:00
|
|
|
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.c ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
|
|
|
|
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} dce.y CMakeLists.txt Makefile.am)
|
|
|
|
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|