netcdf-c/libsrc4/CMakeLists.txt

49 lines
1.0 KiB
CMake
Raw Normal View History

2012-07-17 06:31:35 +08:00
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
INCLUDE_DIRECTORIES(".")
# Process these files with m4.
2012-08-08 04:21:44 +08:00
SET(libsrc4_SOURCES nc4dispatch.c nc4attr.c nc4dim.c nc4file.c nc4grp.c nc4type.c nc4var.c ncfunc.c nc4internal.c nc4hdf.c)
IF(LOGGING)
SET(libsrc4_SOURCES ${libsrc4_SOURCES} error4.c)
2012-08-08 04:21:44 +08:00
ENDIF()
2012-07-17 06:31:35 +08:00
add_library(netcdf4 OBJECT ${libsrc4_SOURCES})
2012-07-17 06:31:35 +08:00
# Files for make dist
FILE(GLOB libsrc4_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.h ${CMAKE_CURRENT_SOURCE_DIR}/*.sh)
SET(CUR_EXTRA_DIST error4.c CMakeLists.txt Makefile.am)
ADD_EXTRA_DIST("${libsrc4_SOURCES}")
ADD_EXTRA_DIST("${libsrc4_HEADERS}")
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
2012-07-18 04:50:43 +08:00
###
# Options related to the man page generation.
###
###
2012-07-17 06:31:35 +08:00
# The C API man page.
2012-07-18 04:50:43 +08:00
###
2012-07-17 06:31:35 +08:00
set(man_MANS netcdf.3)
set(ARGS_MANPAGE -DAPI=C)
IF (USE_NETCDF4)
SET(ARGS_MANPAGE ${ARGS_MANPAGE} -DNETCDF4=TRUE)
2012-07-17 06:31:35 +08:00
ENDIF(USE_NETCDF4)
IF (BUILD_DAP)
SET(ARGS_MANPAGE ${ARGS_MANPAGE} -DDAP=TRUE)
2012-07-17 06:31:35 +08:00
ENDIF(BUILD_DAP)
IF (BUILD_PARALLEL)
SET(ARGS_MANPAGE ${ARGS_MANPAGE} -DPARALLEL_IO=TRUE)
2012-07-17 06:31:35 +08:00
ENDIF(BUILD_PARALLEL)