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
|
|
|
|
|
|
|
###
|
|
|
|
# Options related to the man page generation.
|
|
|
|
###
|
|
|
|
|
|
|
|
###
|
|
|
|
# The C API man page.
|
|
|
|
###
|
|
|
|
|
|
|
|
set(man_MANS netcdf.3)
|
|
|
|
|
|
|
|
set(ARGS_MANPAGE -DAPI=C)
|
|
|
|
|
|
|
|
IF (USE_NETCDF4)
|
2014-04-22 01:15:33 +08:00
|
|
|
SET(ARGS_MANPAGE ${ARGS_MANPAGE} -DNETCDF4=TRUE)
|
2012-07-25 06:53:58 +08:00
|
|
|
ENDIF(USE_NETCDF4)
|
|
|
|
|
|
|
|
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}")
|