mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-31 17:50:26 +08:00
Added missing install for cmake-based builds, netcdf_mem.h. Also, moved install directives for header files into include/CMakeLists.txt. This is in support of https://github.com/Unidata/netcdf-c/issues/227
This commit is contained in:
parent
81d28b859f
commit
1c1141d43e
@ -974,7 +974,7 @@ IF(ENABLE_PNETCDF)
|
||||
MESSAGE(STATUS "Using PNetCDF Library: ${PNETCDF}")
|
||||
ELSE()
|
||||
MESSAGE(WARNING "ENABLE_PNETCDF requires version 1.6.1 or later; found version ${pnetcdf_version}. PNetCDF is disabled")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDIF(NOT PNETCDF)
|
||||
ENDIF()
|
||||
|
||||
@ -1549,23 +1549,6 @@ ENDIF()
|
||||
#####
|
||||
ADD_SUBDIRECTORY(docs)
|
||||
|
||||
#####
|
||||
# Moving on to CPack, install packages.
|
||||
#####
|
||||
INSTALL(FILES ${netCDF_SOURCE_DIR}/include/netcdf.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
COMPONENT headers)
|
||||
|
||||
INSTALL(FILES ${netCDF_BINARY_DIR}/include/netcdf_meta.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
COMPONENT headers)
|
||||
|
||||
IF(ENABLE_PNETCDF OR ENABLE_PARALLEL)
|
||||
INSTALL(FILES ${netCDF_SOURCE_DIR}/include/netcdf_par.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
COMPONENT headers)
|
||||
ENDIF()
|
||||
|
||||
##
|
||||
# Brute force, grab all of the dlls from the depency directory,
|
||||
# install them in the binary dir. Grab all of the .libs, put them
|
||||
|
@ -1,3 +1,26 @@
|
||||
#####
|
||||
# Installation of various netCDF headers.
|
||||
#####
|
||||
|
||||
INSTALL(FILES ${netCDF_SOURCE_DIR}/include/netcdf.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
COMPONENT headers)
|
||||
|
||||
INSTALL(FILES ${netCDF_SOURCE_DIR}/include/netcdf_mem.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
COMPONENT headers)
|
||||
|
||||
INSTALL(FILES ${netCDF_BINARY_DIR}/include/netcdf_meta.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
COMPONENT headers)
|
||||
|
||||
IF(ENABLE_PNETCDF OR ENABLE_PARALLEL)
|
||||
INSTALL(FILES ${netCDF_SOURCE_DIR}/include/netcdf_par.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||
COMPONENT headers)
|
||||
ENDIF()
|
||||
|
||||
|
||||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} Makefile.am CMakeLists.txt)
|
||||
ADD_EXTRA_DIST("${CUR_EXTRA_DIST}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user