initial upload
This commit is contained in:
27
cmake/modules/FindExodus.cmake
Normal file
27
cmake/modules/FindExodus.cmake
Normal file
@@ -0,0 +1,27 @@
|
||||
#
|
||||
# Find the Exodus finite element data model library from Sandia
|
||||
#
|
||||
# EXODUS_FOUND - System has Exodus
|
||||
# EXODUS_INCLUDE_DIR - The LibXml2 include directory
|
||||
# EXODUS_LIBRARIES - The libraries needed to use LibXml2
|
||||
#
|
||||
# Original author: https://gitlab.kitware.com/xdmf/xdmf/blob/master/CMake/FindExodus.cmake
|
||||
|
||||
#FIND_PACKAGE(NetCDF REQUIRED)
|
||||
# Original lagrit build line: -L$(EXO_LIB_DIR) -lexodus_for -lexodus -lnetcdf -lhdf5_hl -lhdf5 -lz -ldl
|
||||
|
||||
FIND_PATH(Exodus_INCLUDE_DIR NAMES exodusII.h)
|
||||
|
||||
#FIND_LIBRARY(EXODUS_LIBRARIES NAMES exodusii exodusIIv2c exodus_for exodus)
|
||||
FIND_LIBRARY(Exodus_LIBRARIES
|
||||
NAMES exodus_for exodus
|
||||
)
|
||||
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set EXODUS_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Exodus DEFAULT_MSG Exodus_LIBRARIES Exodus_INCLUDE_DIR)
|
||||
|
||||
MARK_AS_ADVANCED(Exodus_INCLUDE_DIR Exodus_LIBRARIES)
|
||||
|
||||
30
cmake/modules/FindNetCDF.cmake
Normal file
30
cmake/modules/FindNetCDF.cmake
Normal file
@@ -0,0 +1,30 @@
|
||||
#
|
||||
# Find NetCDF include directories and libraries
|
||||
#
|
||||
# NetCDF_FOUND - System has NetCDF
|
||||
# NetCDF_INCLUDE_DIR - The NetCDF include directory
|
||||
# NetCDF_LIBRARIES - The libraries needed to use NetCDF
|
||||
|
||||
FIND_PATH(NetCDF_INCLUDE_DIR netcdf.h)
|
||||
|
||||
FIND_LIBRARY(NetCDF_LIBRARIES
|
||||
NAMES netcdf
|
||||
${NetCDF_PREFIX}
|
||||
${NetCDF_PREFIX}/lib64
|
||||
${NetCDF_PREFIX}/lib
|
||||
/usr/local/lib64
|
||||
/usr/lib64
|
||||
/usr/lib64/netcdf-3
|
||||
/usr/local/lib
|
||||
/usr/lib
|
||||
/usr/lib/netcdf-3
|
||||
)
|
||||
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set EXODUS_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NetCDF DEFAULT_MSG NetCDF_INCLUDE_DIR NetCDF_LIBRARIES)
|
||||
|
||||
MARK_AS_ADVANCED(NetCDF_INCLUDE_DIR NetCDF_LIBRARIES)
|
||||
|
||||
Reference in New Issue
Block a user