Commit 2d60d2a9 authored by bonnell's avatar bonnell

Port to VTK version 6.0

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@20931 18c085ea-50e0-402c-830e-de6fd14e8384
parent b18cb226
#*****************************************************************************
#
# Copyright (c) 2000 - 2012, Lawrence Livermore National Security, LLC
# Produced at the Lawrence Livermore National Laboratory
# LLNL-CODE-442911
# All rights reserved.
#
# This file is part of VisIt. For details, see https://visit.llnl.gov/. The
# full copyright notice is contained in the file COPYRIGHT located at the root
# of the VisIt distribution or at http://www.llnl.gov/visit/copyright.html.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# - Redistributions of source code must retain the above copyright notice,
# this list of conditions and the disclaimer below.
# - Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the disclaimer (as noted below) in the
# documentation and/or other materials provided with the distribution.
# - Neither the name of the LLNS/LLNL nor the names of its contributors may
# be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY,
# LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
#
# Modifications:
# Kathleen Bonnell, Thu Dec 3 10:54:31 PST 2009
# Change the library name for windows.
#
# Mark C. Miller, Wed Oct 27 19:21:10 PDT 2010
# Relocated explicit setting of LIBDEP to config-site files as different
# sites may have ExodusII installed differently.
#
# Kathleen Bonnell, Mon Dec 27 18:47:01 MST 2010
# Change the library name for windows.
#
#****************************************************************************/
# Use the EXODUSII_DIR hint from the config-site .cmake file
INCLUDE(${VISIT_SOURCE_DIR}/CMake/SetUpThirdParty.cmake)
IF (WIN32)
SET_UP_THIRD_PARTY(EXODUSII lib/${VISIT_MSVC_VERSION} include exoIIv2c)
ELSE (WIN32)
SET_UP_THIRD_PARTY(EXODUSII lib inc exoIIv2c)
ENDIF (WIN32)
......@@ -75,70 +75,81 @@
# Kathleen Biagas, Wed Jan 30 17:54:21 MST 2013
# Preliminary changes for VTK-6.
#
# Kathleen Biagas, Thu Feb 21 16:04:58 MST 2013
# Set VTK_LIBRARY_DIRS manually.
#
# Kathleen Biagas, Thu May 2 10:11:44 PDT 2013
# Don't attempt the python wrappers if we don't have PYTHON_VERSION.
#
# Kathleen Biagas, Fri May 3 17:00:03 MST 2013
# Ensure that the vtk install has all the libraries we require.
#
#****************************************************************************/
INCLUDE(${VISIT_SOURCE_DIR}/CMake/ThirdPartyInstallLibrary.cmake)
# Use the VTK_DIR hint from the config-site .cmake file
SET(USING_VTK5 TRUE)
IF(EXISTS ${VISIT_VTK_DIR}/VTKConfig.cmake)
SET(VTK_DIR ${VISIT_VTK_DIR})
ELSE(EXISTS ${VISIT_VTK_DIR}/VTKConfig.cmake)
IF(EXISTS ${VISIT_VTK_DIR}/lib/vtk-5.8)
SET(VTK_DIR ${VISIT_VTK_DIR}/lib/vtk-5.8)
ELSE(EXISTS ${VISIT_VTK_DIR}/lib/vtk-5.8)
IF(EXISTS ${VISIT_VTK_DIR}/lib/cmake/vtk-6.0)
SET(VTK_DIR ${VISIT_VTK_DIR}/lib/cmake/vtk-6.0)
SET(USING_VTK5 FALSE)
ELSE(EXISTS ${VISIT_VTK_DIR}/lib/cmake/vtk-6.0)
SET(VTK_DIR ${VISIT_VTK_DIR}/lib)
ENDIF(EXISTS ${VISIT_VTK_DIR}/lib/cmake/vtk-6.0)
ENDIF(EXISTS ${VISIT_VTK_DIR}/lib/vtk-5.8)
ENDIF(EXISTS ${VISIT_VTK_DIR}/VTKConfig.cmake)
IF (USING_VTK5)
# Declare VTK_USE_MANGLED_MESA as a cache variable so we can access it later.
# We rely on FindVTK to set it to the right value.
SET(VTK_USE_MANGLED_MESA OFF CACHE INTERNAL "Set a cache variable that FindVTK can override")
ELSE (USING_VTK5)
ENDIF (USING_VTK5)
IF(EXISTS ${VISIT_VTK_DIR}/lib/cmake/vtk-6.0/VTKConfig.cmake)
SET(VTK_DIR ${VISIT_VTK_DIR}/lib/cmake/vtk-6.0)
ENDIF()
MESSAGE(STATUS "Checking for VTK in ${VTK_DIR}")
IF (USING_VTK5)
INCLUDE(${CMAKE_ROOT}/Modules/FindVTK.cmake)
ELSE (USING_VTK5)
#VTK-6 Migration guide says that find_package is preferred
find_package(VTK 6.0 REQUIRED NO_MODULE
PATHS ${VTK_DIR})
ENDIF (USING_VTK5)
# Set up our list of required and optional vtk modules
SET(REQ_VTK_MODS
vtkCommonCore
vtkCommonDataModel
vtkFiltersCore
vtkFiltersFlowPaths
vtkFiltersHybrid
vtkFiltersModeling
vtkIOLegacy
vtkIOPLY
vtkIOXML
vtkInteractionStyle
vtkRenderingAnnotation
vtkRenderingFreeTypeOpenGL
vtkRenderingOpenGL)
IF(NOT VISIT_SERVER_COMPONENTS_ONLY AND NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)
LIST(APPEND REQ_VTK_MODS vtkGUISupportQtOpenGL)
ENDIF()
# Optional
#SET(OPT_VTK_MODS
# vtkGeovisCore # Cartographic Projection
# vtkIOEnSight # EnSight
# vtklibxml2 # Xdmf
# )
# We don't list our required modules in the find_package call because it
# does funny things with VTK_INCLUDES, and the OPTIONAL_COMPONENTS arg
# causes an error if anything in the optional list is not found, would be better
# if it issued a warning instead. Perhaps one day it will be fixed, and we can
# use this: find_package(VTK 6.0 REQUIRED ${REQ_VTK_MODS} OPTIONAL_COMPONENTS ${OPT_VTK_MODS} NO_MODULE PATHS ${VTK_DIR})
find_package(VTK 6.0 REQUIRED NO_MODULE PATHS ${VTK_DIR})
# Ensure we have all the required modules:
FOREACH(module ${REQ_VTK_MODS})
IF(NOT TARGET ${module})
MESSAGE(ERROR "VisIt requires ${module}")
ENDIF()
ENDFOREACH()
SET(VTK_LIBRARY_DIRS ${VTK_INSTALL_PREFIX}/lib CACHE PATH "Path to vtk libraries" FORCE)
MESSAGE(STATUS " VTK_FOUND=${VTK_FOUND}")
MESSAGE(STATUS " VTK_USE_FILE=${VTK_USE_FILE}")
MESSAGE(STATUS " VTK_MAJOR_VERSION=${VTK_MAJOR_VERSION}")
MESSAGE(STATUS " VTK_MINOR_VERSION=${VTK_MINOR_VERSION}")
MESSAGE(STATUS " VTK_BUILD_VERSION=${VTK_BUILD_VERSION}")
MESSAGE(STATUS " VTK_INCLUDE_DIRS=${VTK_INCLUDE_DIRS}")
MESSAGE(STATUS " VTK_LIBRARY_DIRS=${VTK_LIBRARY_DIRS}")
IF (VTK_MAJOR_VERSION STREQUAL "6")
MESSAGE(STATUS " VTK_DEFINITIONS=${VTK_DEFINITIONS}")
ELSE (VTK_MAJOR_VERSION STREQUAL "6")
MESSAGE(STATUS " VTK_KITS=${VTK_KITS}")
ENDIF (VTK_MAJOR_VERSION STREQUAL "6")
# Set the VisIt mangled mesa off of the VTK mangled mesa variable.
IF (VTK_MAJOR_VERSION STREQUAL "6")
ELSE (VTK_MAJOR_VERSION STREQUAL "6")
IF("${VTK_USE_MANGLED_MESA}" STREQUAL "ON")
MESSAGE(STATUS "VTK uses mangled mesa")
SET(VISIT_USE_MANGLED_MESA "ON" CACHE BOOL "Use mangled mesa in VisIt")
# Add path to the directory that includes MangledMesa to the include
# directories.
GET_FILENAME_COMPONENT(MANGLEMESADIR ${VTK_DIR}/../../include ABSOLUTE)
SET(VTK_INCLUDE_DIRS ${VTK_INCLUDE_DIRS} ${MANGLEMESADIR})
ENDIF("${VTK_USE_MANGLED_MESA}" STREQUAL "ON")
ENDIF (VTK_MAJOR_VERSION STREQUAL "6")
MESSAGE(STATUS " VTK_LIBRARIES=${VTK_LIBRARIES}")
MESSAGE(STATUS " VTK_INSTALL_PREFIX=${VTK_INSTALL_PREFIX}")
MESSAGE(STATUS " VTK_LIBRARY_DIRS=${VTK_LIBRARY_DIRS}")
# Add install commands for all of the VTK libraries. Is there a better way?
IF(APPLE)
......@@ -155,89 +166,44 @@ IF(VISIT_VTK_SKIP_INSTALL)
MESSAGE(STATUS "Skipping installation of VTK libraries")
ELSE(VISIT_VTK_SKIP_INSTALL)
IF(NOT WIN32)
SET(pathnameandprefix "${VTK_LIBRARY_DIRS}/lib")
SET(pathnameandprefix "${VTK_INSTALL_PREFIX}/lib/lib")
ELSE()
SET(pathnameandprefix "${VTK_RUNTIME_DIRS}/")
SET(pathnameandprefix "${VTK_INSTALL_PREFIX}/bin/")
SET(pathnameandprefixlib "${VTK_INSTALL_PREFIX}/lib/")
ENDIF(NOT WIN32)
MACRO(SETUP_INSTALL vtklib)
IF (VTK_MAJOR_VERSION STREQUAL "6")
SET(LIBNAME ${pathnameandprefix}${vtklib}-${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}.${SO_EXT})
ELSE (VTK_MAJOR_VERSION STREQUAL "6")
SET(LIBNAME ${pathnameandprefix}${vtklib}.${SO_EXT})
ENDIF (VTK_MAJOR_VERSION STREQUAL "6")
IF(EXISTS ${LIBNAME})
THIRD_PARTY_INSTALL_LIBRARY(${LIBNAME})
ENDIF(EXISTS ${LIBNAME})
IF(WIN32)
# install .lib versions, too
IF (VTK_MAJOR_VERSION STREQUAL "6")
SET(LIBNAME ${pathnameandprefix}${vtklib}-${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}.lib)
ELSE (VTK_MAJOR_VERSION STREQUAL "6")
SET(LIBNAME ${pathnameandprefix}${vtklib}.lib)
ENDIF (VTK_MAJOR_VERSION STREQUAL "6")
SET(LIBNAME ${pathnameandprefixlib}${vtklib}-${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION}.lib)
IF(EXISTS ${LIBNAME})
THIRD_PARTY_INSTALL_LIBRARY(${LIBNAME})
ENDIF(EXISTS ${LIBNAME})
ENDIF(WIN32)
ENDMACRO(SETUP_INSTALL vtklib)
IF (VTK_MAJOR_VERSION STREQUAL "6")
# FIX_ME_VTK6.0, BAD, BAD, BAD, should get python version another way.
IF(WIN32)
SET(PYVER "27")
ELSE(WIN32)
SET(PYVER "26")
ENDIF(WIN32)
ELSE (VTK_MAJOR_VERSION STREQUAL "6")
ENDIF (VTK_MAJOR_VERSION STREQUAL "6")
# Base libs and their python wrappings
FOREACH(VTKLIB ${VTK_LIBRARIES})
SETUP_INSTALL("${VTKLIB}")
IF (VTK_MAJOR_VERSION STREQUAL "6")
# this needs python version now, majorminor
SETUP_INSTALL("${VTKLIB}Python${PYVER}D")
ELSE (VTK_MAJOR_VERSION STREQUAL "6")
SETUP_INSTALL("${VTKLIB}PythonD")
ENDIF (VTK_MAJOR_VERSION STREQUAL "6")
ENDFOREACH(VTKLIB)
IF (VTK_MAJOR_VERSION STREQUAL "6")
UNSET(PYVER)
ELSE (VTK_MAJOR_VERSION STREQUAL "6")
ENDIF (VTK_MAJOR_VERSION STREQUAL "6")
# Utility libs, and misc not defined by VTK_LIBRARIES var
FOREACH(VTKLIB
IF (VTK_MAJOR_VERSION STREQUAL "6")
ELSE (VTK_MAJOR_VERSION STREQUAL "6")
${VTK_PNG_LIBRARIES}
${VTK_ZLIB_LIBRARIES}
${VTK_JPEG_LIBRARIES}
${VTK_TIFF_LIBRARIES}
${VTK_EXPAT_LIBRARIES}
${VTK_FREETYPE_LIBRARIES}
ENDIF (VTK_MAJOR_VERSION STREQUAL "6")
${VTK_LIBXML2_LIBRARIES}
${VTK_LIBPROJ4_LIBRARIES}
MapReduceMPI
mpistubs
vtkDICOMParser
vtkPythonCore
vtkalglib
IF (VTK_MAJOR_VERSION STREQUAL "6")
ELSE (VTK_MAJOR_VERSION STREQUAL "6")
vtkftgl
ENDIF (VTK_MAJOR_VERSION STREQUAL "6")
vtksqlite
IF (VTK_MAJOR_VERSION STREQUAL "6")
ELSE (VTK_MAJOR_VERSION STREQUAL "6")
vtksys
ENDIF (VTK_MAJOR_VERSION STREQUAL "6")
vtkverdict
)
SETUP_INSTALL("${VTKLIB}")
ENDFOREACH(VTKLIB)
# Python
IF(PYTHON_VERSION)
# different naming convention.
# Remove '.' from python version for use in vtk python library naming.
STRING(REPLACE "." "" PYVER ${PYTHON_VERSION})
FOREACH(VTKLIB ${VTK_LIBRARIES})
SETUP_INSTALL("${VTKLIB}Python${PYVER}D")
ENDFOREACH(VTKLIB)
FOREACH(VTKLIB vtkWrappingPython${PYVER})
SETUP_INSTALL("${VTKLIB}")
ENDFOREACH(VTKLIB)
ENDIF(PYTHON_VERSION)
# Add install targets for VTK headers too -- but just the vtk-5.0 dir.
# The VTK_INCLUDE_DIRS may contain stuff like /usr/include or the
# Python directory and we just want VTK here.
......@@ -326,6 +292,7 @@ MARK_AS_ADVANCED(VTK_PYTHON_WRAPPERS_FOUND)
# If vtk was build with R, we need to add the R link dirs to VTK_LIBRARY_DIRS
# This is necessary b/c VTK doesn't do a good job exposing R support in VTKConfig.cmake.
# VTK-6 FIX ME -- verify if this is still the case
IF(R_FOUND)
SET(VTK_LIBRARY_DIRS ${VTK_LIBRARY_DIRS} ${R_LIBRARY_DIR})
ENDIF(R_FOUND)
......
......@@ -52,11 +52,22 @@
# Revert to standard setup. Build_visit now handles vtk deps correctly
# in the generated config-site.
#
# Kathleen Biagas, Fri May 3 16:55:12 MST 2013
# If our xdmf depends on vtlibxml2, ensure it exists.
#
#****************************************************************************/
# Use the XDMF_DIR hint from the config-site .cmake file
#
IF(VISIT_XDMF_LIBDEP)
LIST(FIND VISIT_XDMF_LIBDEP vtklibxml2-${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION} xdmf_needs_vtkxml)
IF(${xdmf_needs_vtkxml} GREATER "-1" AND NOT TARGET vtklibxml2)
MESSAGE(STATUS "Xdmf depends on vtklibxml2, but it doesn't exist")
RETURN()
ENDIF()
ENDIF()
INCLUDE(${VISIT_SOURCE_DIR}/CMake/SetUpThirdParty.cmake)
SET_UP_THIRD_PARTY(XDMF lib include Xdmf)
......
......@@ -268,10 +268,6 @@ SET(SILO_INCLUDE_DIR ${VISIT_INCLUDE_DIR}/silo/include)
SET(SILO_LIBRARY_DIR ${VISIT_LIBRARY_DIR} ${VISIT_ARCHIVE_DIR})
SET(SILO_LIB @SILO_LIB@)
SET(VISUS_INCLUDE_DIR ${VISIT_INCLUDE_DIR}/visus/include)
SET(VISUS_LIBRARY_DIR ${VISIT_LIBRARY_DIR} ${VISIT_ARCHIVE_DIR})
SET(VISUS_LIB @VISUS_LIB@)
SET(XDMF_INCLUDE_DIR ${VISIT_INCLUDE_DIR}/xdmf/include)
SET(XDMF_LIBRARY_DIR ${VISIT_LIBRARY_DIR} ${VISIT_ARCHIVE_DIR})
SET(XDMF_LIB @XDMF_LIB@)
......
......@@ -321,6 +321,9 @@
# is indeed (forced) cached so it winds up in CMakeCache.txt and
# adjusted name of the shell script to recmake_visit.sh.
#
# Mark C. Miller, Wed Feb 6 16:23:09 PST 2013
# Fix missing '#' in first line of recmake_visit.sh file.
#
# Kathleen Biagas, Tue Feb 26 13:58:12 MST 2013
# Added VISIT_XXX_DEFAULT internal cache vars that store values set in
# config-site cmake files via VISIT_OPTION_DEFAULT. This allows for
......@@ -341,6 +344,12 @@
# to the internal boost so that it could be used by paraDIS, but that
# seemed like more work.
#
# Kathleen Biagas, Thur May 2 14:08:27 MST 2013
# Don't bother finding bulk of thirdparty libs if building minimal plugins.
#
# Kathleen Biagas, Wed May 8 16:24:01 PDT 2013
# Remove EXODUS, no longer needed.
#
#****************************************************************************/
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR)
......@@ -593,9 +602,9 @@ IF(WIN32)
ENDIF(VISIT_WINDOWS_APPLICATION)
ENDIF(WIN32)
IF(VISIT_MESA_DIR)
OPTION(VISIT_USE_MANGLED_MESA "Enable use of mangled Mesa classes in VisIt"
ON)
OPTION(VISIT_USE_MANGLED_MESA "Enable use of mangled Mesa classes in VisIt" OFF)
ENDIF(VISIT_MESA_DIR)
OPTION(VISIT_INSTALL_AS_BETA "Install as beta (symlink beta instead of current to installed version)." OFF)
OPTION(VISIT_MPICH_INSTALL "Install MPICH into VisIt binary distribution" OFF)
......@@ -665,8 +674,6 @@ VISIT_3RDPARTY_VAR(CCMIO_DIR "Path containing the CCMIO library's include an
VISIT_3RDPARTY_VAR(CFITSIO_DIR "Path containing the CFITSIO library's include and lib")
VISIT_3RDPARTY_VAR(CGNS_DIR "Path containing the CGNS library's include and lib")
VISIT_3RDPARTY_DEP(CGNS_LIBDEP "CGNS library dependencies")
VISIT_3RDPARTY_VAR(EXODUSII_DIR "Path containing the ExodusII library's include and lib")
VISIT_3RDPARTY_DEP(EXODUSII_LIBDEP "ExodusII library dependencies")
VISIT_3RDPARTY_VAR(FASTBIT_DIR "Path containing the Fastbit library's include and lib")
VISIT_3RDPARTY_VAR(GDAL_DIR "Path containing the GDAL library's include and lib")
VISIT_3RDPARTY_VAR(HDF4_DIR "Path containing the HDF4 library's include and lib")
......@@ -681,7 +688,6 @@ VISIT_3RDPARTY_DEP(NETCDF_LIBDEP "NETCDF library dependencies")
VISIT_3RDPARTY_VAR(R_DIR "Path containing the R library's include and lib")
VISIT_3RDPARTY_VAR(SILO_DIR "Path containing the Silo library's include and lib")
VISIT_3RDPARTY_DEP(SILO_LIBDEP "Silo library dependencies")
VISIT_3RDPARTY_VAR(VISUS_DIR "Path containing the ViSUS library's include and lib")
VISIT_3RDPARTY_VAR(XDMF_DIR "Path containing the Xdmf library's include and lib")
VISIT_3RDPARTY_DEP(XDMF_LIBDEP "Xdmf library dependencies")
VISIT_3RDPARTY_VAR(MDSPLUS_DIR "Path containing the MDSplus library's include and lib")
......@@ -970,6 +976,9 @@ ENDIF(NOT VISIT_DBIO_ONLY)
# Configure Mesa support.
IF(NOT WIN32 AND VISIT_MESA_DIR AND NOT VISIT_DBIO_ONLY)
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindVisItMesa.cmake)
IF(MESA_FOUND)
SET(HAVE_OSMESA 1)
ENDIF(MESA_FOUND)
ENDIF(NOT WIN32 AND VISIT_MESA_DIR AND NOT VISIT_DBIO_ONLY)
IF(VISIT_R_DIR)
......@@ -1106,122 +1115,113 @@ ELSE(CMAKE_HOST_UNIX)
ENDIF(WIN32)
ENDIF(CMAKE_HOST_UNIX)
# Configure HDF5 support. Do it before the other libraries since many can depend on it.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindHDF5.cmake)
IF(HDF5_FOUND)
SET(HAVE_LIBHDF5 1)
ENDIF(HDF5_FOUND)
# Configure adios support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindADIOS.cmake)
IF(ADIOS_FOUND)
SET(HAVE_LIBADIOS 1)
ENDIF(ADIOS_FOUND)
# Configure advio support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindADVIO.cmake)
IF(ADVIO_FOUND)
SET(HAVE_LIBADVIO 1)
ENDIF(ADVIO_FOUND)
# Configure Boxlib support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindBoxlib.cmake)
IF(BOXLIB_FOUND)
SET(HAVE_LIBBOXLIB 1)
ENDIF(BOXLIB_FOUND)
# Configure ccmio support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindCCMIO.cmake)
IF(CCMIO_FOUND)
SET(HAVE_LIBCCMIO 1)
ENDIF(CCMIO_FOUND)
# Configure cfitsio support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindCFITSIO.cmake)
IF(CFITSIO_FOUND)
SET(HAVE_LIBCFITSIO 1)
ENDIF(CFITSIO_FOUND)
# Configure CGNS support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindCGNS.cmake)
IF(CGNS_FOUND)
SET(HAVE_LIBCGNS 1)
ENDIF(CGNS_FOUND)
# Configure Fastbit support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindFastBit.cmake)
IF(FASTBIT_FOUND)
SET(HAVE_LIBFASTBIT 1)
ENDIF(FASTBIT_FOUND)
# Configure gdal support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindGDAL.cmake)
IF(GDAL_FOUND)
SET(HAVE_LIBGDAL 1)
ENDIF(GDAL_FOUND)
# Configure HDF4 support.
IF(VISIT_STATIC)
# There's a problem including HDF4 and Netcdf in the same executable due
# to some netcdf-like symbols in libmfhdf
MESSAGE(STATUS "HDF4 disabled for static builds due to collision with NetCDF.")
ELSE(VISIT_STATIC)
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindHDF4.cmake)
IF(HDF4_FOUND)
SET(HAVE_LIBHDF4 1)
ENDIF(HDF4_FOUND)
ENDIF(VISIT_STATIC)
IF(NOT VISIT_BUILD_MINIMAL_PLUGINS)
# Configure HDF5 support.
# Do it before the other libraries since many can depend on it.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindHDF5.cmake)
IF(HDF5_FOUND)
SET(HAVE_LIBHDF5 1)
ENDIF(HDF5_FOUND)
# Configure adios support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindADIOS.cmake)
IF(ADIOS_FOUND)
SET(HAVE_LIBADIOS 1)
ENDIF(ADIOS_FOUND)
# Configure advio support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindADVIO.cmake)
IF(ADVIO_FOUND)
SET(HAVE_LIBADVIO 1)
ENDIF(ADVIO_FOUND)
# Configure Boxlib support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindBoxlib.cmake)
IF(BOXLIB_FOUND)
SET(HAVE_LIBBOXLIB 1)
ENDIF(BOXLIB_FOUND)
# Configure ccmio support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindCCMIO.cmake)
IF(CCMIO_FOUND)
SET(HAVE_LIBCCMIO 1)
ENDIF(CCMIO_FOUND)
# Configure cfitsio support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindCFITSIO.cmake)
IF(CFITSIO_FOUND)
SET(HAVE_LIBCFITSIO 1)
ENDIF(CFITSIO_FOUND)
# Configure CGNS support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindCGNS.cmake)
IF(CGNS_FOUND)
SET(HAVE_LIBCGNS 1)
ENDIF(CGNS_FOUND)
# Configure Fastbit support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindFastBit.cmake)
IF(FASTBIT_FOUND)
SET(HAVE_LIBFASTBIT 1)
ENDIF(FASTBIT_FOUND)
# Configure gdal support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindGDAL.cmake)
IF(GDAL_FOUND)
SET(HAVE_LIBGDAL 1)
ENDIF(GDAL_FOUND)
# Configure HDF4 support.
IF(VISIT_STATIC)
# There's a problem including HDF4 and Netcdf in the same executable due
# to some netcdf-like symbols in libmfhdf
MESSAGE(STATUS "HDF4 disabled for static builds due to collision with NetCDF.")
ELSE(VISIT_STATIC)
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindHDF4.cmake)
IF(HDF4_FOUND)
SET(HAVE_LIBHDF4 1)
ENDIF(HDF4_FOUND)
ENDIF(VISIT_STATIC)
# Configure h5part support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindH5Part.cmake)
IF(H5PART_FOUND)
SET(HAVE_LIBH5PART 1)
ENDIF(H5PART_FOUND)
# Configure ITAPS support -- it's treated specially.
CONFIGURE_ITAPS()
# Configure Mili support.
INCLUDE(${VISIT_SOURCE_DIR}/CMake/FindMili.cmake)
IF(MILI_FOUND)
SET(HAVE_LIBMILI 1)