67 lines
2.0 KiB
CMake
67 lines
2.0 KiB
CMake
|
# NetCDF Configuration Summary
|
||
|
#
|
||
|
# General
|
||
|
#
|
||
|
|
||
|
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
|
||
|
####### Any changes to this file will be overwritten by the next CMake run ####
|
||
|
####### The input file was netCDFConfig.cmake.in ########
|
||
|
|
||
|
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE)
|
||
|
|
||
|
macro(set_and_check _var _file)
|
||
|
set(${_var} "${_file}")
|
||
|
if(NOT EXISTS "${_file}")
|
||
|
message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
|
||
|
endif()
|
||
|
endmacro()
|
||
|
|
||
|
####################################################################################
|
||
|
|
||
|
set(NetCDFVersion "4.8.1")
|
||
|
set_and_check(netCDF_INSTALL_PREFIX "${PACKAGE_PREFIX_DIR}")
|
||
|
set_and_check(netCDF_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include")
|
||
|
set_and_check(netCDF_LIB_DIR "${PACKAGE_PREFIX_DIR}/lib")
|
||
|
|
||
|
set(netCDF_LIBRARIES netCDF::netcdf)
|
||
|
|
||
|
# include target information
|
||
|
include(CMakeFindDependencyMacro)
|
||
|
if("ON")
|
||
|
find_dependency(HDF5 CONFIG)
|
||
|
endif()
|
||
|
if("TRUE")
|
||
|
find_dependency(CURL CONFIG)
|
||
|
endif()
|
||
|
if("FALSE")
|
||
|
find_dependency(libzip CONFIG)
|
||
|
endif()
|
||
|
include("${CMAKE_CURRENT_LIST_DIR}/netCDFTargets.cmake")
|
||
|
|
||
|
# Compiling Options
|
||
|
#
|
||
|
set(netCDF_C_COMPILER "D:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.38.33130/bin/Hostx64/x64/cl.exe")
|
||
|
set(netCDF_C_COMPILER_FLAGS " /nologo /DWIN32 /D_WINDOWS /utf-8 /MP /MD /O2 /Oi /Gy /DNDEBUG /Z7 ")
|
||
|
set(netCDF_C_CPP_FLAGS " ")
|
||
|
set(netCDF_LDFLAGS "/machine:x64 /LARGEADDRESSAWARE /STACK:40000000 /nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF ")
|
||
|
set(netCDF_AM_CFLAGS "")
|
||
|
set(netCDF_AM_CPPFLAGS "")
|
||
|
set(netCDF_AM_LDFLAGS "")
|
||
|
set(netCDF_SHARED yes)
|
||
|
set(netCDF_STATIC no)
|
||
|
|
||
|
# Features:
|
||
|
#
|
||
|
set(netCDF_HAS_NC2 yes)
|
||
|
set(netCDF_HAS_NC4 yes)
|
||
|
set(netCDF_HAS_HDF4 no)
|
||
|
set(netCDF_HAS_HDF5 yes)
|
||
|
set(netCDF_HAS_PNETCDF no)
|
||
|
set(netCDF_HAS_PARALLEL no)
|
||
|
set(netCDF_HAS_DAP yes)
|
||
|
set(netCDF_HAS_DAP2 yes)
|
||
|
set(netCDF_HAS_DAP4 yes)
|
||
|
set(netCDF_HAS_DISKLESS yes)
|
||
|
set(netCDF_HAS_MMAP no)
|
||
|
set(netCDF_HAS_JNA no)
|