#-----------------------------------------------------------------------------
#
# XDMFConfig.cmake - XDMF CMake configuration file for external projects.
#
# This file is configured by XDMF and used by the UseXDMF.cmake module
# to load XDMF's settings for an external project.

# Top level for development or install
get_filename_component(XDMF_INSTALL_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(XDMF_INSTALL_DIR "${VTK_INSTALL_PREFIX}" PATH)
get_filename_component(XDMF_INSTALL_DIR "${VTK_INSTALL_PREFIX}" PATH)
get_filename_component(XDMF_INSTALL_DIR "${VTK_INSTALL_PREFIX}" PATH)

# The XDMF include file directories.
SET(XDMF_INCLUDE_DIRS "${XDMF_INSTALL_DIR}/include/;${HDF5_INCLUDE_DIR}")

# The XDMF library directories.
SET(XDMF_LIBRARY_DIRS "${XDMF_INSTALL_DIR}/lib")

# The location of the UseXDMF.cmake file.
SET(XDMF_USE_FILE "${XDMF_INSTALL_DIR}/lib/XdmfCMake/UseXDMF.cmake")

# The build settings file.
SET(XDMF_BUILD_SETTINGS_FILE "${XDMF_INSTALL_DIR}/lib/XdmfCMake/XDMFBuildSettings.cmake")

# The directory containing class list files for each kit.
SET(XDMF_KITS_DIR "${XDMF_INSTALL_DIR}/vtk")

# Utility libraries used by XDMF.
# To include a utility library in another project:
# LINK_DIRECTORIES(${XDMF_***_LIBRARY_PATH})
# TARGET_LINK_LIBRARIES(target ${XDMF_***_LIBRARIES})
SET(XDMF_HDF5_INCLUDE "${HDF5_INCLUDE_DIR}")
SET(XDMF_HDF5_LIBRARY_PATH "${HDF5_LIBRARY_DIR}")
SET(XDMF_HDF5_LIBRARIES "hdf5.lib")
SET(XDMF_SYSTEM_HDF5 "ON")

SET(XDMF_LIBXML2_INCLUDE "${VTK_INCLUDE_DIR}/vklibxml2")
SET(XDMF_LIBXML2_LIBRARY_PATH "${VTK_LIBRARY_DIR}")
SET(XDMF_LIBXML2_LIBRARIES "vtklibxml2-6.1.lib")
SET(XDMF_SYSTEM_LIBXML2 "ON")

SET(XDMF_ZLIB_INCLUDE "${ZLIB_INCLUDE_DIR}")
SET(XDMF_ZLIB_LIBRARY_PATH "${ZLIB_LIBRARY_DIR}")
SET(XDMF_ZLIB_LIBRARIES "zlib.lib")
SET(XDMF_SYSTEM_ZLIB "ON")

# The XDMF library dependencies.
IF(NOT XDMF_NO_LIBRARY_DEPENDS)
  INCLUDE("${XDMF_INSTALL_DIR}/lib/XdmfCMake/XDMFLibraryDepends.cmake")
ENDIF(NOT XDMF_NO_LIBRARY_DEPENDS)

# Information about this particular XDMF Installation
SET(XDMF_BUILD_MPI "OFF")
SET(XDMF_BUILD_UTILS "OFF")
SET(XDMF_BUILD_VTK "OFF")
SET(XDMF_WRAP_PYTHON "OFF")

IF(XDMF_BUILD_MPI)
  SET(XDMF_MPI_LIBRARIES "")
  SET(XDMF_MPI_INCLUDE_PATH "")
ENDIF(XDMF_BUILD_MPI)

IF(XDMF_BUILD_UTILS)
  SET(XDMF_EXODUSII_INCLUDE "")
  SET(XDMF_EXODUSII_LIBRARY_PATH "")
  SET(XDMF_EXODUSII_LIBRARIES "")
  SET(XDMF_METIS_INCLUDE "")
  SET(XDMF_METIS_LIBRARY_PATH "")
  SET(XDMF_METIS_LIBRARIES "")
  SET(XDMF_NETCDF_INCLUDE "")
  SET(XDMF_NETCDF_LIBRARY_PATH "")
  SET(XDMF_NETCDF_LIBRARIES "")
ENDIF(XDMF_BUILD_UTILS)

IF(XDMF_BUILD_VTK)
  SET(XDMF_VTK_DIR "")
ENDIF(XDMF_BUILD_VTK)
