-
Notifications
You must be signed in to change notification settings - Fork 262
/
netCDFConfig.cmake.in
51 lines (45 loc) · 1.39 KB
/
netCDFConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# NetCDF Configuration Summary
#
# General
#
@PACKAGE_INIT@
set(NetCDFVersion "@PACKAGE_VERSION@")
set_and_check(netCDF_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
set_and_check(netCDF_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@")
set_and_check(netCDF_LIB_DIR "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@")
set(netCDF_LIBRARIES netCDF::netcdf)
# include target information
include("${CMAKE_CURRENT_LIST_DIR}/netCDFTargets.cmake")
@IMPORT_MPI@
# Compiling Options
#
set(netCDF_C_COMPILER "@CC_VERSION@")
set(netCDF_C_COMPILER_FLAGS "@CFLAGS@")
set(netCDF_C_CPP_FLAGS "@CPPFLAGS@")
set(netCDF_LDFLAGS "@LDFLAGS@")
set(netCDF_AM_CFLAGS "@AM_CFLAGS@")
set(netCDF_AM_CPPFLAGS "@AM_CPPFLAGS@")
set(netCDF_AM_LDFLAGS "@AM_LDFLAGS@")
set(netCDF_SHARED @enable_shared@)
set(netCDF_STATIC @enable_static@)
# Features:
#
set(netCDF_HAS_NC2 @HAS_NC2@)
set(netCDF_HAS_NC4 @HAS_NC4@)
set(netCDF_HAS_HDF4 @HAS_HDF4@)
set(netCDF_HAS_HDF5 @HAS_HDF5@)
set(netCDF_HAS_PNETCDF @HAS_PNETCDF@)
set(netCDF_HAS_PARALLEL @HAS_PARALLEL@)
set(netCDF_HAS_DAP @HAS_DAP2@)
set(netCDF_HAS_DAP2 @HAS_DAP2@)
set(netCDF_HAS_DAP4 @HAS_DAP4@)
set(netCDF_HAS_DISKLESS @HAS_DISKLESS@)
set(netCDF_HAS_MMAP @HAS_MMAP@)
if (netCDF_HAS_HDF4 OR netCDF_HAS_HDF5)
include(CMakeFindDependencyMacro)
find_dependency(HDF5)
endif ()
if (@HAS_PARALLEL@)
include(CMakeFindDependencyMacro)
find_dependency(MPI @MPI_C_VERSION@ EXACT)
endif()