Commit b291c58f authored by Radu Popescu's avatar Radu Popescu
Browse files

Adding files related to TriBits

parent 6afc49b2
# CMake options # @HEADER
include (CheckIncludeFiles) # ************************************************************************
cmake_minimum_required (VERSION 2.6) #
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") # Trilinos: An Object-Oriented Solver Framework
# Copyright (2001) Sandia Corporation
# Default compilers #
set (CMAKE_C_COMPILER "mpicc" CACHE STRING "Default C compiler") #
set (CMAKE_CXX_COMPILER "mpicxx" CACHE STRING "Default C++ compiler") # Copyright (2001) Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000, there is a non-exclusive license for use of this
# Default build type # work by or on behalf of the U.S. Government. Export of this program
set (CMAKE_BUILD_TYPE "Debug" CACHE STRING "Default build type") # may require a license from the United States Government.
#
# Default value for TPL flags # 1. Redistributions of source code must retain the above copyright
set (LIFE_USE_HDF5 FALSE CACHE BOOL "By default, don't use HDF5") # notice, this list of conditions and the following disclaimer.
set (LIFE_USE_QHULL FALSE CACHE BOOL "By default, don't use QHULL") #
set (LIFE_USE_SuperLU FALSE CACHE BOOL "By default, don't use SuperLU") # 2. Redistributions in binary form must reproduce the above copyright
set (LIFE_USE_SuperLUMT FALSE CACHE BOOL "By default, don't use SuperLUMT") # notice, this list of conditions and the following disclaimer in the
set (LIFE_USE_SuperLUDist FALSE CACHE BOOL "By default, don't use SuperLUDist") # documentation and/or other materials provided with the distribution.
set (LIFE_USE_UMFPACK FALSE CACHE BOOL "By default, don't use UMFPACK") #
set (LIFE_USE_MPI_WRAPPER TRUE CACHE BOOL "By default, use the MPI wrappers") # 3. Neither the name of the Corporation nor the names of the
set (LIFE_USE_SPIRIT_PARSER TRUE CACHE BOOL "By default, use the Boost Spirit parser") # contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
# Put some other variables in the cache so they can be set with ccmake #
set (PARMETIS_ROOT "PARMETIS_ROOT-NOTFOUND" CACHE PATH "Location of ParMETIS") # THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
set (UMFPACK_ROOT "UMFPACK_ROOT-NOTFOUND" CACHE PATH "Location of UMFPACK") # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
set (HDF5_ROOT "HDF5_ROOT-NOTFOUND" CACHE PATH "Location of HDF5") # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
set (QHULL_ROOT "QHULL_ROOT-NOTFOUND" CACHE PATH "Location of QHULL") # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
set (SuperLU_ROOT "SuperLU_ROOT-NOTFOUND" CACHE PATH "Location of SuperLU") # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
set (SuperLUMT_ROOT "SuperLUMT_ROOT-NOTFOUND" CACHE PATH "Location of SuperLUMT") # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
set (SuperLUDist_ROOT "SuperLUDist_ROOT-NOTFOUND" CACHE PATH "Location of SuperLUDist") # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
set (BOOST_ROOT "BOOST_ROOT-NOTFOUND" CACHE PATH "Location of Boost") # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
set (Trilinos_ROOT "Trilinos_ROOT-NOTFOUND" CACHE PATH "Location of Trilinos") # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
set (BLAS_LIBRARIES "BLAS_LIBRARIES-NOTFOUND" CACHE STRING "BLAS libraries") # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
set (LAPACK_LIBRARIES "LAPACK_LIBRARIES-NOTFOUND" CACHE STRING "LAPACK libraries") # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Project options # NOTICE: The United States Government is granted for itself and others
project (LifeV) # acting on its behalf a paid-up, nonexclusive, irrevocable worldwide
set (PROJECT_SHORT_NAME "lifev") # license in this data to reproduce, prepare derivative works, and
set (LifeV_VERSION_MAJOR 2) # perform publicly and display publicly. Beginning five (5) years from
set (LifeV_VERSION_MINOR 2) # July 25, 2001, the United States Government is granted for itself and
set (LifeV_VERSION_PATCH 0) # others acting on its behalf a paid-up, nonexclusive, irrevocable
set (PROJECT_BUGREPORT "lifev-user@googlegroups.com") # worldwide license in this data to reproduce, prepare derivative works,
set (PROJECT_HOMEPAGE "www.lifev.org") # distribute copies to the public, perform publicly and display
# publicly, and to permit others to do so.
# Languages #
enable_language (C CXX Fortran) # NEITHER THE UNITED STATES GOVERNMENT, NOR THE UNITED STATES DEPARTMENT
# OF ENERGY, NOR SANDIA CORPORATION, NOR ANY OF THEIR EMPLOYEES, MAKES
# Here we add CXXFLAGS, LDFLAGS that are set by the user # ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LEGAL LIABILITY OR
# It's a peculiar hack: needed to reset the CMAKE_LANG_FLAGS # RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF ANY
# variables in order to place user specified flags at the end # INFORMATION, APPARATUS, PRODUCT, OR PROCESS DISCLOSED, OR REPRESENTS
# (this is useful for overriding an optimization level and # THAT ITS USE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS.
# possibly other things) #
set (CMAKE_C_FLAGS_SAVED ${CMAKE_C_FLAGS}) # ************************************************************************
set (CMAKE_C_FLAGS "") # @HEADER
set (CMAKE_CXX_FLAGS_SAVED ${CMAKE_CXX_FLAGS})
set (CMAKE_CXX_FLAGS "") #
# A) Define your project name and set up major project options
set (CMAKE_C_FLAGS_DEBUG "-Wall -g") #
set (CMAKE_C_FLAGS_RELEASE "-O2")
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${CMAKE_C_FLAGS_SAVED}") # Must set the project name as a varaible at very beginning before including anything else
set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${CMAKE_C_FLAGS_SAVED}") # We set the project name in a separate file so CTest scripts can use it.
set (CMAKE_CXX_FLAGS_DEBUG "-Wall -g") INCLUDE(${CMAKE_SOURCE_DIR}/ProjectName.cmake)
set (CMAKE_CXX_FLAGS_RELEASE "-O2")
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${CMAKE_CXX_FLAGS_SAVED}") # CMake requires that you declare the CMake project in the top-level file and
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS_SAVED}") # not in an include file :-(
PROJECT(${PROJECT_NAME} NONE)
add_definitions (-DTHREEDIM)
#
# Dependencies # B) Pull in the TriBITS system and execute
#
# The list of dependencies will end up being quite long, as it will contain all
# the dependencies of LifeV. Current list: INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/cmake/tribits/package_arch/TribitsProject.cmake)
# * MPI (v)
# * Trilinos (v) # CMake requires this be in the top file and not in an include file :-(
# * ParMETIS (v) CMAKE_MINIMUM_REQUIRED(VERSION ${TRIBITS_CMAKE_MINIMUM_REQUIRED})
# * UMFPACK (should be optional) (v)
# * HDF5 (should be optional) (v) # Do all of the processing for this Tribits project
# * BLAS, LAPACK (v) TRIBITS_PROJECT()
# * Boost (v)
# * Qhull (should be optional) (v)
# MPI
if (NOT LIFE_USE_MPI_WRAPPER)
find_package (MPI REQUIRED)
if (MPI_FOUND)
include_directories (${MPI_CXX_INCLUDE_PATH})
set (LIBS ${LIBS} ${MPI_CXX_LIBRARIES})
endif()
endif()
# Trilinos
find_package (Trilinos REQUIRED)
if (Trilinos_FOUND)
include_directories (${Trilinos_INCLUDE_DIR})
set (LIBS ${LIBS} ${Trilinos_LIBRARIES})
endif()
# ParMETIS
if( NOT PARMETIS_IS_IN_TRILINOS)
find_package (PARMETIS REQUIRED)
if (PARMETIS_FOUND)
include_directories (${PARMETIS_INCLUDE_DIR})
set (LIBS ${LIBS} ${PARMETIS_LIBRARIES})
endif()
endif()
# UMFPACK (optional)
if( NOT UMFPACK_IS_IN_TRILINOS)
if (LIFE_USE_UMFPACK)
find_package (UMFPACK)
if (UMFPACK_FOUND)
set (HAVE_UMFPACK TRUE)
set (HAVE_UMFPACK_H TRUE)
set (HAVE_AMD_H TRUE)
include_directories (${UMFPACK_INCLUDE_DIR})
set (LIBS ${LIBS} ${UMFPACK_LIBRARIES})
endif()
endif(LIFE_USE_UMFPACK)
endif()
# SuperLU (optional)
if( NOT SUPERLU_IS_IN_TRILINOS)
if (LIFE_USE_SuperLU)
find_package (SuperLU)
if (SuperLU_FOUND)
set (HAVE_SuperLU TRUE)
include_directories (${SuperLU_INCLUDE_DIRS})
set (LIBS ${LIBS} ${SuperLU_LIBRARIES})
endif()
endif(LIFE_USE_SuperLU)
endif()
# SuperLUMT (optional)
if (NOT SUPERLUMT_IS_IN_TRILINOS)
if (LIFE_USE_SuperLUMT)
find_package (SuperLUMT)
if (SuperLUMT_FOUND)
set (HAVE_SuperLUMT TRUE)
include_directories (${SuperLUMT_INCLUDE_DIRS})
set (LIBS ${LIBS} ${SuperLUMT_LIBRARIES})
endif()
endif(LIFE_USE_SuperLUMT)
endif()
# SuperLUDist (optional)
if (NOT SUPERLUDIST_IS_IN_TRILINOS)
if (LIFE_USE_SuperLUDist)
find_package (SuperLUDist)
if (SuperLUDist_FOUND)
set (HAVE_SuperLUDist TRUE)
include_directories (${SuperLUDist_INCLUDE_DIRS})
set (LIBS ${LIBS} ${SuperLUDist_LIBRARIES})
endif()
endif(LIFE_USE_SuperLUDist)
endif()
# LAPACK
if (NOT LAPACK_IS_IN_TRILINOS)
find_package (LAPACK REQUIRED)
if (LAPACK_FOUND)
include_directories (${LAPACK_INCLUDE_DIR})
set (LIBS ${LIBS} ${LAPACK_LIBRARIES})
endif()
endif()
# BLAS
if (NOT BLAS_IS_IN_TRILINOS)
find_package (BLAS REQUIRED)
if (BLAS_FOUND)
include_directories (${BLAS_INCLUDE_DIR})
set (LIBS ${LIBS} ${BLAS_LIBRARIES})
endif()
endif()
# HDF5 (optional)
if (NOT HDF5_IS_IN_TRILINOS)
if (LIFE_USE_HDF5)
if (HDF5_ROOT)
set (HDF5_INCLUDE_DIRS ${HDF5_ROOT}/include)
set (HDF5_INCLUDE_DIR ${HDF5_ROOT}/include)
set (HDF5_LIBRARIES "-L${HDF5_ROOT}/lib -lhdf5 -lz -lm")
endif()
find_package (HDF5)
if (HDF5_FOUND)
set (HAVE_HDF5 TRUE)
include_directories (${HDF5_INCLUDE_DIRS})
link_directories (${HDF5_LIBRARY_DIRS})
set (LIBS ${LIBS} ${HDF5_LIBRARIES})
endif()
endif(LIFE_USE_HDF5)
endif()
# Boost
find_package (Boost REQUIRED)
if (Boost_FOUND)
set (HAVE_BOOST TRUE)
set (HAVE_BOOST_VERSION ${Boost_VERSION})
if (Boost_MINOR_VERSION GREATER 39)
set (HAVE_BOOST_GT_1_39 TRUE)
endif(Boost_MINOR_VERSION GREATER 39)
if (Boost_MINOR_VERSION GREATER 40)
set (HAVE_BOOST_SPIRIT_QI TRUE)
endif(Boost_MINOR_VERSION GREATER 40)
include_directories (${Boost_INCLUDE_DIR})
link_directories (${Boost_LIBRARY_DIRS})
set (LIBS ${LIBS} ${Boost_LIBRARIES})
if (NOT LIFE_USE_SPIRIT_PARSER)
set (DISABLE_SPIRIT_PARSER TRUE)
endif()
endif()
# QHULL (optional)
if (LIFE_USE_QHULL)
find_package (QHULL)
if (QHULL_FOUND)
set (HAVE_QHULL TRUE)
include_directories (${QHULL_INCLUDE_DIRS})
set (LIBS ${LIBS} ${QHULL_LIBRARIES})
endif()
endif(LIFE_USE_QHULL)
# Make sure that all headers are in the include path
include_directories (${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR})
set (LIFEV_PACKAGES core array mesh alg fem filters functions solver)
foreach (component ${LIFEV_PACKAGES})
include_directories (${PROJECT_SOURCE_DIR}/life/life${component})
set (LIBS life${component} ${LIBS})
endforeach(component)
# Here we add the user-define value of LIBS
set (LIBS ${LIBS} ${LIFE_EXTRA_LINK_LINE})
# lifeconfig.h
string (COMPARE EQUAL ${CMAKE_BUILD_TYPE} "Debug" HAVE_LIFEV_DEBUG)
string (COMPARE EQUAL ${CMAKE_BUILD_TYPE} "Release" HAVE_LIFEV_OPTO3)
configure_file(
"${PROJECT_SOURCE_DIR}/lifeconfig_cmake.h.in"
"${PROJECT_BINARY_DIR}/lifeconfig.h"
)
install(FILES "${PROJECT_BINARY_DIR}/lifeconfig.h"
DESTINATION include)
# The following subdirectories are part of the project
add_subdirectory(life)
add_subdirectory(examples)
include (CTest)
enable_testing()
add_subdirectory(testsuite)
# Documentation (not yet working, don't activate)
#if (LIFE_BUILD_DOCS)
add_subdirectory(doc)
#endif()
# @HEADER
# ************************************************************************
#
# Trilinos: An Object-Oriented Solver Framework
# Copyright (2001) Sandia Corporation
#
#
# Copyright (2001) Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000, there is a non-exclusive license for use of this
# work by or on behalf of the U.S. Government. Export of this program
# may require a license from the United States Government.
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of the Corporation nor the names of the
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "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 SANDIA CORPORATION OR THE
# 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.
#
# NOTICE: The United States Government is granted for itself and others
# acting on its behalf a paid-up, nonexclusive, irrevocable worldwide
# license in this data to reproduce, prepare derivative works, and
# perform publicly and display publicly. Beginning five (5) years from
# July 25, 2001, the United States Government is granted for itself and
# others acting on its behalf a paid-up, nonexclusive, irrevocable
# worldwide license in this data to reproduce, prepare derivative works,
# distribute copies to the public, perform publicly and display
# publicly, and to permit others to do so.
#
# NEITHER THE UNITED STATES GOVERNMENT, NOR THE UNITED STATES DEPARTMENT
# OF ENERGY, NOR SANDIA CORPORATION, NOR ANY OF THEIR EMPLOYEES, MAKES
# ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LEGAL LIABILITY OR
# RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF ANY
# INFORMATION, APPARATUS, PRODUCT, OR PROCESS DISCLOSED, OR REPRESENTS
# THAT ITS USE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS.
#
# ************************************************************************
# @HEADER
INCLUDE(TribitsListHelpers)
#
# Define the Trilinos package names, directories, and classification.
#
# Package classifications are:
#
# PS: Primary Stable Package
#
# Primary Stable Packages have at least some Primary Stable Code which is
# expected to be fully tested before every push to the global repo. The
# default enable for PS packages is empty "" which allows the PS package
# to be enabled implicitly based on other criteria. The option
# Trilinos_ENABLE_ALL_PACKAGES=ON will cause all PS packages to be enabled
# unless they are explicitly disabled.
#
# SS: Secondary Stable Package
#
# Secondary Stable Packages have no PS code or they would be classified as
# PS packages. A package must be classified as SS if it has a required
# dependency on another SS package or SS TPL. A package may also be
# declared SS to avoid requiring it to be tested before every push to the
# global repo. For example, a package that does not provide any
# significant functionally like Didasko is classified as a SS package even
# through it could be classified as PS just based on its required package
# and TPL dependencies. SS packages will have their default enables set
# to empty "". This allows them to be enabled implicilty. When
# Trilinos_ENABLE_ALL_PACKAGES=ON but
# Trilinos_ENABLE_SECONDARY_STABLE_CODE=OFF, the SS packages will not be
# enabled. However, when Trilinos_ENABLE_ALL_PACKAGES=ON and
# Trilinos_ENABLE_SECONDARY_STABLE_CODE=ON, then SS packages will be
# enabled if they are not explicitly disabled. Packages that are SS but
# not PS must be disabled in pre-push testing. However, SS packages are
# tested by the post-push CI and nightly testing processes.
#
# EX: Experimental Package
#
# Experimental packages are those packages that contain no PS or SS
# code. The default enable for EX packages is always OFF which requires
# that they be explicitly enabled in order to be turned on. EX packages
# must be disabled in pre-push testring and are not tested as part of the
# post-push CI or nightly testing processes. However, package developers
# of EX pacakges are encouraged to set up their own nightly testing for
# thier EX packages.
#
# NOTE: These packages must be listed in strictly assending order in terms of
# package dependencies. If you get the order wrong, then an error message
# will be printed during configuration with CMake.
#
SET( Trilinos_PACKAGES_AND_DIRS_AND_CLASSIFICATIONS
TrilinosFramework cmake PS # Only tests, no libraries/capabilities!
Teuchos packages/teuchos PS
ThreadPool packages/ThreadPool PS # Depends on ptheads system library
Sacado packages/sacado PS
RTOp packages/rtop PS
Kokkos packages/kokkos PS
Epetra packages/epetra PS
Zoltan packages/zoltan PS
Shards packages/shards PS
GlobiPack packages/globipack PS
Triutils packages/triutils PS
Tpetra packages/tpetra PS
EpetraExt packages/epetraext PS
Thyra packages/thyra PS
OptiPack packages/optipack PS
Isorropia packages/isorropia PS
Pliris packages/pliris PS
Claps packages/claps EX
AztecOO packages/aztecoo PS
Galeri packages/galeri PS
Amesos2 packages/amesos2 EX
Amesos packages/amesos PS
Pamgen packages/pamgen PS
SEACAS packages/seacas SS # Depends on netcdf, optionally hdf5, xdmf, pamgen
Trios packages/trios EX #temporary
Ifpack packages/ifpack PS
Komplex packages/komplex PS
ML packages/ml PS
Belos packages/belos PS
Ifpack2 packages/ifpack2 PS
Stratimikos packages/stratimikos PS
Meros packages/meros EX # no longer released
FEI packages/fei PS
Anasazi packages/anasazi PS
Teko packages/teko SS
RBGen packages/rbgen PS
TriKota packages/TriKota SS
Intrepid packages/intrepid PS
STK packages/stk SS # Depends on boost
Phalanx packages/phalanx SS
Phdmesh packages/phdmesh EX # to be replaced by STK
NOX packages/nox PS
Moertel packages/moertel PS
TrilinosCouplings packages/trilinoscouplings SS
Rythmos packages/rythmos PS
MOOCHO packages/moocho PS
Aristos packages/aristos EX
Stokhos packages/stokhos SS
Piro packages/piro SS
Sundance packages/Sundance SS # Could be PS based on deps (BUG: 4669)
CTrilinos packages/CTrilinos SS # Switched to SS to speed up checkin testing
ForTrilinos packages/ForTrilinos EX
PyTrilinos packages/PyTrilinos SS
WebTrilinos packages/WebTrilinos EX # Should be SS
Didasko packages/didasko SS
NewPackage packages/new_package EX # Should be SS
Optika packages/optika SS
Mesquite packages/mesquite PS
FEApp demos/FEApp SS # Capability demonstration package
)
#
# Disable certain packages on certain platforms.
#
# NOTE: This just makes the packages experimental 'EX' and therefore still
# allows the user to enable the package explicitly but the package will not
# get enabled implicitly.
#
PACKAGE_DISABLE_ON_PLATFORMS(MOOCHO Windows)
PACKAGE_DISABLE_ON_PLATFORMS(Phalanx Windows)
PACKAGE_DISABLE_ON_PLATFORMS(Phdmesh Windows)
PACKAGE_DISABLE_ON_PLATFORMS(PyTrilinos Windows)
PACKAGE_DISABLE_ON_PLATFORMS(Sundance Windows)
PACKAGE_DISABLE_ON_PLATFORMS(Tpetra Windows)
PACKAGE_DISABLE_ON_PLATFORMS(Ifpack2 Windows)
PACKAGE_DISABLE_ON_PLATFORMS(TriKota Windows)
PACKAGE_DISABLE_ON_PLATFORMS(Pamgen Windows)
PACKAGE_DISABLE_ON_PLATFORMS(STK Windows)
PACKAGE_DISABLE_ON_PLATFORMS(SEACAS Windows)
PACKAGE_DISABLE_ON_PLATFORMS(SEACAS Windows)
PACKAGE_DISABLE_ON_PLATFORMS(Anasazi Windows)
PACKAGE_DISABLE_ON_PLATFORMS(Zoltan Windows)
PACKAGE_DISABLE_ON_PLATFORMS(Isorropia Windows)
PACKAGE_DISABLE_ON_PLATFORMS(Teko Windows)
PACKAGE_DISABLE_ON_PLATFORMS(Mesquite AIX)
PACKAGE_DISABLE_ON_PLATFORMS(Trios Windows)
SET(PROJECT_NAME Trilinos)
# @HEADER
# ************************************************************************
#
# Trilinos: An Object-Oriented Solver Framework
# Copyright (2001) Sandia Corporation
#
#
# Copyright (2001) Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000, there is a non-exclusive license for use of this
# work by or on behalf of the U.S. Government. Export of this program
# may require a license from the United States Government.
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of the Corporation nor the names of the
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "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 SANDIA CORPORATION OR THE
# 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.
#
# NOTICE: The United States Government is granted for itself and others
# acting on its behalf a paid-up, nonexclusive, irrevocable worldwide
# license in this data to reproduce, prepare derivative works, and
# perform publicly and display publicly. Beginning five (5) years from
# July 25, 2001, the United States Government is granted for itself and
# others acting on its behalf a paid-up, nonexclusive, irrevocable
# worldwide license in this data to reproduce, prepare derivative works,
# distribute copies to the public, perform publicly and display
# publicly, and to permit others to do so.
#
# NEITHER THE UNITED STATES GOVERNMENT, NOR THE UNITED STATES DEPARTMENT
# OF ENERGY, NOR SANDIA CORPORATION, NOR ANY OF THEIR EMPLOYEES, MAKES
# ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LEGAL LIABILITY OR
# RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR USEFULNESS OF ANY
# INFORMATION, APPARATUS, PRODUCT, OR PROCESS DISCLOSED, OR REPRESENTS
# THAT ITS USE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS.
#
# ************************************************************************
# @HEADER
#
# Define the list of TPLs, their find module names, and their classification
#
# TPL_NAME:
#
# The name of the TPL used in the CMake cache variables TPL_ENABLE_${TPL_NAME}
#
# TPL_FINDMOD:
#
# The name of the find module under that is used to get the names of the
# TPLs. If ends in '/' then this gives the directory and the standard module
# name will be used which is FindTPL${TPL_NAME}.cmake.
#
# TPL_CLASSIFICATION:
#
# PS: Primary Stable TPL
#
# Primary Stable TPLs are those TPLs that a Trilinos developer must have
# installed on their machine in order to be able to do Trilinos
# development. For example, we require that you have BLAS, LAPACK, and
# MPI installed in order to do Trilinos development. These are
# fundamental dependencies that are needed in order to do precheckin
# testing.
#
# SS: Secondary Stable TPL
#
# Secondary Stable TPLs are those TPLs that are not required in order to
# be able to develop and test Trilinos before checkins but are none the
# less offically supported. Support for SS TPLs is tested as part of the
# nightly testing process.
#
# TS: Tertiary Stable TPL
#
# Tertiary Stable TPLs are those TPLs that are supported TPLs but can not
# be included in the set of SS TPLs because they may conflicit with other
# SS Code. For example, METIS is listed as a TS TPL because it conflicts
# with ParMETIS which is declared as a SS TPL.
#
# EX: Experimental TPL
#
# Experimental TPLs are not offically supported. They represent
# experimental capabilities of Trilinos packages. Support for EX TPLs is
# never tested as part of the main nightly testing process. However,
# package developers are encouraged to set up their own nightly testing
# for their EX TPLs for their packages.
#
# The default enable for all TPLs is empty "" reguardless of the category.
# The idea is that the enabling of the TPL will be done by the package and
# other enables that the user has to set.
#
# NOTE: The TPLs must be listed in the order of increasing dependencies (if
# such dependencies exist).
#
SET( Trilinos_TPLS_FINDMODS_CLASSIFICATIONS
Peano "cmake/TPLs/" EX
CUDA "cmake/TPLs/" EX
Thrust "cmake/TPLs/" EX
Cusp "cmake/TPLs/" EX
TBB "cmake/TPLs/" EX
Pthread "cmake/TPLs/" SS
HWLOC "cmake/TPLs/" SS
BinUtils "cmake/TPLs/" SS
ARPREC "cmake/TPLs/" SS
QD "cmake/TPLs/" SS
MPI "${${PROJECT_NAME}_TRIBITS_DIR}/tpls/" PS
BLAS "cmake/TPLs/" PS
LAPACK "cmake/TPLs/" PS
Boost "cmake/TPLs/" SS
Scotch "cmake/TPLs/" SS
OVIS "cmake/TPLs/" SS
METIS "cmake/TPLs/" TS
ParMETIS "cmake/TPLs/" SS
PaToH "cmake/TPLs/" SS
CppUnit "cmake/TPLs/" SS
ADOLC "cmake/TPLs/" SS