Commit b255985f authored by Hamilton, Steven P's avatar Hamilton, Steven P
Browse files

Removing old cmake files.

parent febbd7f4
#!/bin/bash -l
#
# Script to build the raytrace code on different systems.
#
# Author: Mark Berrill, modified by Steven Hamilton
#
function usage {
echo "Usage: ./build_profugus <type of build>"
echo ""
echo " Default: compiles the code for current host"
echo ""
echo " Possible build types values: gnu, xl, pgi, clang"
exit
}
if [[ $1 == "-h" || $1 == "--help" ]]
then
usage
exit
fi
# Clear existing modules
module unload clang gnu pgi xl xlf cuda kokkos cmake
module purge
module load gcc/4.8.5
module load cmake
module load git
module load hdf5
module load cuda
module load spectrum-mpi
module load netlib-lapack
rm -rf CMake*
echo cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DProfugus_ENABLE_CXX11:BOOL=ON \
-DCMAKE_C_COMPILER="${MPI_ROOT}/bin/mpicc" \
-DCMAKE_CXX_COMPILER="${MPI_ROOT}/bin/mpicxx" \
-DCMAKE_INSTALL_PREFIX:PATH=${PWD} \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DTPL_ENABLE_MPI:BOOL=ON \
-DMPI_BASE_DIR:PATH=${MPI_ROOT} \
-DTPL_ENABLE_DLlib=OFF \
-DTPL_ENABLE_HDF5:BOOL=ON \
-DProfugus_ASSERT_MISSING_PACKAGES:BOOL=OFF \
-DTPL_ENABLE_CUDA:BOOL=ON \
-DProfugus_ENABLE_CUDA:BOOL=ON \
-DCUDA_PROPAGATE_HOST_FLAGS:BOOL=OFF \
-DCUDA_NVCC_FLAGS:STRING="--std=c++11;-arch=sm_60;-Xptxas=-dlcm=cg" \
-DProfugus_ENABLE_TESTS:BOOL=OFF \
-DProfugus_ENABLE_MC:BOOL=ON \
-DProfugus_ENABLE_CUDA:BOOL=ON \
-DProfugus_ENABLE_CudaUtils:BOOL=ON \
src
cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DProfugus_ENABLE_CXX11:BOOL=ON \
-DCMAKE_C_COMPILER="${MPI_ROOT}/bin/mpicc" \
-DCMAKE_CXX_COMPILER="${MPI_ROOT}/bin/mpicxx" \
-DCMAKE_INSTALL_PREFIX:PATH=${PWD} \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DTPL_ENABLE_MPI:BOOL=ON \
-DMPI_BASE_DIR:PATH=${MPI_ROOT} \
-DTPL_ENABLE_DLlib=OFF \
-DTPL_ENABLE_HDF5:BOOL=ON \
-DProfugus_ASSERT_MISSING_PACKAGES:BOOL=OFF \
-DTPL_ENABLE_CUDA:BOOL=ON \
-DProfugus_ENABLE_CUDA:BOOL=ON \
-DCUDA_PROPAGATE_HOST_FLAGS:BOOL=OFF \
-DCUDA_NVCC_FLAGS:STRING="--std=c++11;-arch=sm_60;-Xptxas=-dlcm=cg" \
-DProfugus_ENABLE_TESTS:BOOL=OFF \
-DProfugus_ENABLE_MC:BOOL=ON \
-DProfugus_ENABLE_CUDA:BOOL=ON \
-DProfugus_ENABLE_CudaUtils:BOOL=ON \
src
make -j 16 install
##---------------------------------------------------------------------------##
## CMAKE BASE FILE
##---------------------------------------------------------------------------##
# Default build all packages
SET(Profugus_ENABLE_Utils ON CACHE BOOL "")
SET(Profugus_ENABLE_CudaUtils ON CACHE BOOL "")
SET(Profugus_ENABLE_Matprop ON CACHE BOOL "")
SET(Profugus_ENABLE_SPn ON CACHE BOOL "")
SET(Profugus_ENABLE_MC ON CACHE BOOL "")
# Turn on tests
SET(Profugus_ENABLE_TESTS ON CACHE BOOL "")
SET(Profugus_TEST_CATEGORIES "BASIC" CACHE STRING "")
# Turn on SS code and optional packages by default
SET(Profugus_ENABLE_ALL_FORWARD_DEP_PACKAGES OFF CACHE BOOL "")
SET(Profugus_ENABLE_ALL_OPTIONAL_PACKAGES ON CACHE BOOL "")
SET(Profugus_ENABLE_SECONDARY_STABLE_CODE ON CACHE BOOL "")
# Set explicit instantiation options
SET(Profugus_ENABLE_EXPLICIT_INSTANTIATION ON CACHE BOOL "")
SET(Teuchos_ENABLE_FLOAT OFF CACHE BOOL "")
SET(Teuchos_ENABLE_COMPLEX OFF CACHE BOOL "")
SET(Tpetra_INST_FLOAT OFF CACHE BOOL "")
SET(Tpetra_INST_COMPLEX_FLOAT OFF CACHE BOOL "")
SET(Tpetra_INST_COMPLEX_DOUBLE OFF CACHE BOOL "")
SET(Thyra_ENABLE_EXPLICIT_INSTANTIATION OFF CACHE BOOL "")
SET(Stratimikos_ENABLE_EXPLICIT_INSTANTIATION OFF CACHE BOOL "")
# Up the max num procs
SET(MPI_EXEC_MAX_NUMPROCS 8 CACHE STRING "")
# Turn off binutils
SET(Teuchos_ENABLE_BinUtils OFF CACHE BOOL "")
# Turn off Zoltan2
SET(Profugus_ENABLE_Zoltan2 OFF CACHE BOOL "")
# Compiler options
SET(BUILD_SHARED_LIBS ON CACHE BOOL "")
SET(CMAKE_CXX_FLAGS "-std=c++11 -Wno-deprecated-declarations" CACHE STRING "")
SET(Profugus_ENABLE_CXX11 ON CACHE BOOL "")
# TriBITS stuff
SET(Profugus_ENABLE_INSTALL_CMAKE_CONFIG_FILES OFF CACHE BOOL "")
SET(Profugus_DEPS_XML_OUTPUT_FILE "" CACHE FILEPATH "")
#!/bin/sh
##---------------------------------------------------------------------------##
## CMAKE FOR xk7
##---------------------------------------------------------------------------##
# CLEANUP
rm -rf CMakeCache.txt
rm -rf CMakeFiles
# SOURCE AND INSTALL
SOURCE=<SET_SOURCE_DIR>
INSTALL=<SET_INSTALL_DIR>
# BUILD OPTIONS
BUILD="RELWITHDEBINFO"
# TPL PATHS
COMP_PATH="/opt/cray/xt-asyncpe/5.27/bin"
PYTHON_EXE="/opt/sw/xk6/python/2.7.3/sles11.1_gnu4.3.4/bin/python"
##---------------------------------------------------------------------------##
cmake \
-DCMAKE_BUILD_TYPE:STRING="$BUILD" \
-DCMAKE_INSTALL_PREFIX:PATH=$INSTALL \
\
-DPYTHON_EXECUTABLE:FILEPATH=$PYTHON_EXE \
-DTPL_ENABLE_MPI:BOOL=OFF \
-DCMAKE_C_COMPILER:STRING=pgcc \
-DCMAKE_CXX_COMPILER:STRING=pgc++ \
-DCMAKE_Fortran_COMPILER:STRING=pgf90 \
-DProfugus_ENABLE_TESTS:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DBUILD_STATIC_LIBS:BOOL=ON \
\
-DProfugus_ENABLE_INSTALL_CMAKE_CONFIG_FILES:BOOL=ON \
\
-DProfugus_ENABLE_SPn:BOOL=OFF \
-DProfugus_ENABLE_MueLu:BOOL=OFF \
\
-DCMAKE_CXX_FLAGS:STRING="-tp=bulldozer --c++11 -V14.7 -w -D_X86INTRIN_H_INCLUDED" \
-DCMAKE_C_FLAGS:STRING="-tp=bulldozer -V14.7 -w" \
-DCMAKE_Fortran_FLAGS:STRING="-tp=bulldozer -V14.7 -w" \
-DCMAKE_EXE_LINKER_FLAGS:STRING="-L/opt/gcc/4.8.2/snos/lib64 -latomic" \
\
-DMPI_EXEC:FILEPATH="/sw/xk6/site-aprun/bin/aprun" \
-DMPIEXEC_NUMPROC_FLAG:STRING="-n" \
\
-DTPL_ENABLE_HDF5:BOOL=ON \
-DHDF5_INCLUDE_DIRS:PATH=$HDF5_DIR/include \
-DHDF5_LIBRARY_DIRS:PATH=$HDF5_DIR/lib \
\
-DTPL_BLAS_LIBRARIES:STRING="${CRAY_LIBSCI_PREFIX_DIR}/lib/libsci_pgi.a" \
-DTPL_LAPACK_LIBRARIES:STRING="${CRAY_LIBSCI_PREFIX_DIR}/lib/libsci_pgi.a" \
\
-DProfugus_CONFIGURE_OPTIONS_FILE:FILEPATH="${SOURCE}/install/base.cmake" \
-DProfugus_ASSERT_MISSING_PACKAGES:BOOL=OFF \
\
${SOURCE}
##---------------------------------------------------------------------------##
## end of cmake_xk7.sh
##---------------------------------------------------------------------------##
# Sample build script for emmet cluster
SOURCE=~/Codes/ProfugusMC/src
INSTALL=~/Codes/ProfugusMC/opt
#-DProfugus_ASSERT_MISSING_PACKAGES:BOOL=OFF \
cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DProfugus_ENABLE_CXX11:BOOL=ON \
-DCMAKE_C_COMPILER="mpicc" \
-DCMAKE_CXX_COMPILER="mpicxx" \
-DCMAKE_INSTALL_PREFIX:PATH=${INSTALL} \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DTPL_ENABLE_MPI:BOOL=ON \
-DTPL_ENABLE_HDF5:BOOL=ON \
-DTPL_ENABLE_CUDA:BOOL=ON \
-DProfugus_ENABLE_CUDA:BOOL=ON \
-DCUDA_PROPAGATE_HOST_FLAGS:BOOL=OFF \
-DCUDA_NVCC_FLAGS:STRING="--std=c++11;-arch=sm_35;-Xptxas=-dlcm=cg" \
-DProfugus_ENABLE_TESTS:BOOL=OFF \
-DProfugus_ENABLE_MC:BOOL=ON \
-DProfugus_ENABLE_CudaUtils:BOOL=ON \
${SOURCE}
#!/bin/sh
##---------------------------------------------------------------------------##
## CMAKE FOR emmet
##---------------------------------------------------------------------------##
# CLEANUP
rm -rf CMakeCache.txt
rm -rf CMakeFiles
# SOURCE AND INSTALL
SOURCE=<SOURCE_DIR>
INSTALL=<INSTALL_DIR>
# BUILD OPTIONS
BUILD="DEBUG"
HDF5_PATH=/usr/lib64
# TPL PATHS
MPI_PATH="/usr/lib64/openmpi"
HDF5_LIB_PATH="${MPI_PATH}/lib"
HDF5_INC_PATH="/usr/include/openmpi-x86_64"
##---------------------------------------------------------------------------##
cmake \
-DCMAKE_BUILD_TYPE:STRING="$BUILD" \
-DCMAKE_INSTALL_PREFIX:PATH=$INSTALL \
\
-DTPL_ENABLE_MPI:BOOL=ON \
-DMPI_BASE_DIR:PATH=${MPI_PATH} \
\
-DCMAKE_C_COMPILER="${MPI_PATH}/bin/mpicc" \
-DCMAKE_CXX_COMPILER="${MPI_PATH}/bin/mpicxx" \
-DCMAKE_CXX_FLAGS="-Wno-unused-local-typedefs" \
\
-DTPL_ENABLE_HDF5:BOOL=ON \
-DHDF5_INCLUDE_DIRS:PATH=$HDF5_INC_PATH \
-DHDF5_LIBRARY_DIRS:PATH=$HDF5_LIB_PATH \
\
-DProfugus_CONFIGURE_OPTIONS_FILE:FILEPATH="${SOURCE}/install/base.cmake" \
-DProfugus_ASSERT_MISSING_PACKAGES:BOOL=OFF \
\
-DProfugus_ENABLE_CXX11:BOOL=ON \
-DProfugus_ENABLE_SPn:BOOL=ON \
-DProfugus_ENABLE_Alea:BOOL=ON \
-DProfugus_ENABLE_MC:BOOL=ON \
-DProfugus_ENABLE_Utils:BOOL=ON \
\
-DKokkos_ENABLE_Pthread:BOOL=ON \
-DTpetra_INST_PTHREAD:BOOL=ON \
-DKokkosClassic_DefaultNode:STRING="Kokkos::Compat::KokkosThreadsWrapperNode" \
\
${SOURCE}
##---------------------------------------------------------------------------##
## end of cmake_emmet_cpu.sh
##---------------------------------------------------------------------------##
#!/bin/sh
##---------------------------------------------------------------------------##
## CMAKE FOR X86_64
##---------------------------------------------------------------------------##
# CLEANUP
rm -rf CMakeCache.txt
rm -rf CMakeFiles
# SOURCE AND INSTALL
SOURCE=<SOURCE_DIR>
INSTALL=<INSTALL_DIR>
# BUILD OPTIONS
BUILD="RELWITHDEBINFO"
HDF5_PATH=/usr/lib64
# TPL PATHS
MPI_PATH="/usr/lib64/openmpi"
HDF5_PATH="${MPI_PATH}"
# Cuda flags
CUDA_NVCC_FLAGS="-arch=sm_35;-std=c++11;-Xcudafe;--diag_suppress=code_is_unreachable"
##---------------------------------------------------------------------------##
cmake \
-DCMAKE_BUILD_TYPE:STRING="$BUILD" \
-DCMAKE_INSTALL_PREFIX:PATH=$INSTALL \
\
-DTPL_ENABLE_MPI:BOOL=ON \
-DMPI_BASE_DIR:PATH=${MPI_PATH} \
\
-DCMAKE_C_COMPILER="${MPI_PATH}/bin/mpicc" \
\
-DTPL_ENABLE_HDF5:BOOL=ON \
-DHDF5_INCLUDE_DIRS:PATH=${HDF5_PATH}/include \
-DHDF5_LIBRARY_DIRS:PATH=${HDF5_PATH}/lib \
\
-DProfugus_CONFIGURE_OPTIONS_FILE:FILEPATH="${SOURCE}/install/base.cmake" \
-DProfugus_ASSERT_MISSING_PACKAGES:BOOL=OFF \
\
-DTPL_ENABLE_CUDA:BOOL=ON \
-DCUDA_NVCC_FLAGS:STRING=${CUDA_NVCC_FLAGS} \
-DCUDA_PROPAGATE_HOST_FLAGS:BOOL=OFF \
\
-DProfugus_ENABLE_CXX11:BOOL=ON \
-DProfugus_ENABLE_SPn:BOOL=ON \
-DProfugus_ENABLE_Alea:BOOL=OFF \
-DProfugus_ENABLE_MC:BOOL=ON \
-DProfugus_ENABLE_Utils:BOOL=ON \
-DProfugus_ENABLE_OpenMP:BOOL=ON \
-DProfugus_ENABLE_Teko:BOOL=OFF \
-DProfugus_ENABLE_Kokkos:BOOL=ON \
-DProfugus_ENABLE_Tpetra:BOOL=ON \
-DTpetra_ENABLE_TESTS:BOOL=OFF \
-DProfugus_ENABLE_MueLu:BOOL=OFF \
\
-DTPL_ENABLE_Pthread:BOOL=ON \
-DKokkos_ENABLE_Cuda:BOOL=OFF \
-DKokkos_ENABLE_Pthread:BOOL=ON \
-DKokkos_ENABLE_OpenMP:BOOL=ON \
-DKokkos_ENABLE_CXX11:BOOL=ON \
\
-DTpetra_INST_OPENMP:BOOL=ON \
-DTpetra_INST_PTHREAD:BOOL=ON \
\
${SOURCE}
##---------------------------------------------------------------------------##
## end of cmake_emmet_gpu.sh
##---------------------------------------------------------------------------##
#!/bin/sh
##---------------------------------------------------------------------------##
## CMAKE FOR X86_64
##---------------------------------------------------------------------------##
# CLEANUP
rm -rf CMakeCache.txt
rm -rf CMakeFiles
# SOURCE AND INSTALL
SOURCE=<SOURCE_DIR>
INSTALL=<INSTALL_DIR>
# BUILD OPTIONS
BUILD="RELWITHDEBINFO"
HDF5_PATH=/usr/lib64
# TPL PATHS
MPI_PATH="/usr/lib64/openmpi"
HDF5_PATH="${MPI_PATH}"
# Cuda flags
CUDA_NVCC_FLAGS="-std=c++11 -Xcudafe --diag_suppress=code_is_unreachable"
##---------------------------------------------------------------------------##
cmake \
-DCMAKE_BUILD_TYPE:STRING="$BUILD" \
-DCMAKE_INSTALL_PREFIX:PATH=$INSTALL \
\
-DTPL_ENABLE_MPI:BOOL=ON \
-DMPI_BASE_DIR:PATH=${MPI_PATH} \
\
-DCMAKE_C_COMPILER="${MPI_PATH}/bin/mpicc" \
-DCMAKE_CXX_COMPILER="${PWD}/nvcc_wrapper" \
-DCMAKE_CXX_FLAGS="-Wno-unused-local-typedefs -lineinfo -Xcudafe --diag_suppress=code_is_unreachable" \
\
-DTPL_ENABLE_HDF5:BOOL=ON \
-DHDF5_INCLUDE_DIRS:PATH=${HDF5_PATH}/include \
-DHDF5_LIBRARY_DIRS:PATH=${HDF5_PATH}/lib \
\
-DProfugus_CONFIGURE_OPTIONS_FILE:FILEPATH="${SOURCE}/install/base.cmake" \
-DProfugus_ASSERT_MISSING_PACKAGES:BOOL=OFF \
\
-DTPL_ENABLE_CUDA:BOOL=ON \
-DCUDA_NVCC_FLAGS:STRING=${CUDA_NVCC_FLAGS} \
\
-DProfugus_ENABLE_CXX11:BOOL=ON \
-DProfugus_ENABLE_SPn:BOOL=ON \
-DProfugus_ENABLE_Alea:BOOL=ON \
-DProfugus_ENABLE_MC:BOOL=OFF \
-DProfugus_ENABLE_Utils:BOOL=ON \
-DProfugus_ENABLE_OpenMP:BOOL=ON \
-DProfugus_ENABLE_Teko:BOOL=OFF \
-DProfugus_ENABLE_Kokkos:BOOL=ON \
-DProfugus_ENABLE_Tpetra:BOOL=ON \
-DTpetra_ENABLE_TESTS:BOOL=OFF \
\
-DTPL_ENABLE_Pthread:BOOL=ON \
-DKokkos_ENABLE_Pthread:BOOL=ON \
-DKokkos_ENABLE_OpenMP:BOOL=ON \
-DKokkosClassic_DefaultNode:STRING="Kokkos::Compat::KokkosCudaWrapperNode" \
-DKokkos_ENABLE_CXX11:BOOL=ON \
-DKokkos_ENABLE_Cuda_UVM:BOOL=ON \
\
-DTpetra_INST_OPENMP:BOOL=ON \
-DTpetra_INST_PTHREAD:BOOL=ON \
\
${SOURCE}
##---------------------------------------------------------------------------##
## end of cmake_emmet_gpu.sh
##---------------------------------------------------------------------------##
#!/bin/sh
##---------------------------------------------------------------------------##
## CMAKE FOR X86_64 WITH CUDA
##---------------------------------------------------------------------------##
# CLEANUP
rm -rf CMakeCache.txt
rm -rf CMakeFiles
# SOURCE AND INSTALL
SOURCE=<SOURCE_DIR>
INSTALL=<INSTALL_DIR>
MPI_HOME=<MPI_DIR>
HDF5_DIR=<HDF5_DIR>
# BUILD OPTIONS
BUILD="RELEASE"
##---------------------------------------------------------------------------##
cmake \
-DCMAKE_BUILD_TYPE:STRING="$BUILD" \
-DCMAKE_INSTALL_PREFIX:PATH=$INSTALL \
-DProfugus_ENABLE_CXX11:BOOL=ON \
-DCMAKE_C_COMPILER="${MPI_BIN}/mpicc" \
-DCMAKE_CXX_COMPILER="${MPI_BIN}/mpicxx" \
\
-DTPL_ENABLE_MPI:BOOL=ON \
-DMPI_BASE_DIR:PATH=${MPI_HOME} \
\
-DTPL_ENABLE_HDF5:BOOL=ON \
-DHDF5_INCLUDE_DIRS:PATH=${HDF5_DIR}/include \
-DHDF5_LIBRARY_DIRS:PATH=${HDF5_DIR}/lib \
\
-DProfugus_ASSERT_MISSING_PACKAGES:BOOL=OFF \
\
-DTPL_ENABLE_CUDA:BOOL=ON \
-DProfugus_ENABLE_CUDA:BOOL=ON \
-DCUDA_PROPAGATE_HOST_FLAGS:BOOL=OFF \
-DCUDA_NVCC_FLAGS:STRING="--std=c++11;-arch=sm_35;-lineinfo" \
\
-DProfugus_ENABLE_TESTS:BOOL=ON \
-DProfugus_ENABLE_MC:BOOL=ON \
-DProfugus_ENABLE_CUDA:BOOL=ON \
-DProfugus_ENABLE_CudaUtils:BOOL=ON \
\
-DKokkos_ENABLE_Cuda:BOOL=OFF \
\
${SOURCE}
##---------------------------------------------------------------------------##
## end of cmake_x86_64.sh
##---------------------------------------------------------------------------##
#!/bin/sh
##---------------------------------------------------------------------------##
## CMAKE FOR MACOSX
##---------------------------------------------------------------------------##
# CLEANUP
rm -rf CMakeCache.txt
rm -rf CMakeFiles
# SOURCE AND INSTALL
SOURCE=<SET_SOURCE_DIR>
INSTALL=<SET_INSTALL_DIR>
# BUILD OPTIONS
BUILD="DEBUG"
MPI="ON"
# TPL PATHS
HDF5_PATH="/tpls/gcc/parallel/hdf5"
MPI_PATH="/opt/mpi/current"
##---------------------------------------------------------------------------##
cmake \
-DCMAKE_BUILD_TYPE:STRING="$BUILD" \
-DTPL_ENABLE_MPI:BOOL=$MPI \
-DCMAKE_INSTALL_PREFIX:PATH=$INSTALL \
\
-DMPI_BASE_DIR:PATH=$MPI_PATH \
\
-DTPL_ENABLE_HDF5:BOOL=ON \
-DHDF5_INCLUDE_DIRS:PATH=$HDF5_PATH/include \
-DHDF5_LIBRARY_DIRS:PATH=$HDF5_PATH/lib \
\
-DProfugus_CONFIGURE_OPTIONS_FILE:FILEPATH="${SOURCE}/install/base.cmake" \
-DProfugus_ASSERT_MISSING_PACKAGES:BOOL=OFF \
\
${SOURCE}
##---------------------------------------------------------------------------##
## end of cmake_macosx.sh
##---------------------------------------------------------------------------##
#!/bin/sh
##---------------------------------------------------------------------------##
## CMAKE FOR MACOSX
##---------------------------------------------------------------------------##
# CLEANUP
rm -rf CMakeCache.txt
rm -rf CMakeFiles
# SOURCE AND INSTALL
SOURCE=<SET_SOURCE_DIR>
INSTALL=<SET_INSTALL_DIR>
# BUILD OPTIONS
BUILD="DEBUG"
MPI="ON"
# TPL PATHS
HDF5_PATH="/tpls/clang/parallel/hdf5"
MPI_PATH="/opt/mpi/clang"
##---------------------------------------------------------------------------##
cmake \
-DCMAKE_BUILD_TYPE:STRING="$BUILD" \
-DTPL_ENABLE_MPI:BOOL=$MPI \
-DCMAKE_INSTALL_PREFIX:PATH=$INSTALL \
\
-DMPI_BASE_DIR:PATH=$MPI_PATH \
\
-DTPL_ENABLE_HDF5:BOOL=ON \
-DHDF5_INCLUDE_DIRS:PATH=$HDF5_PATH/include \
-DHDF5_LIBRARY_DIRS:PATH=$HDF5_PATH/lib \
\
-DProfugus_CONFIGURE_OPTIONS_FILE:FILEPATH="${SOURCE}/install/base.cmake" \
-DProfugus_ASSERT_MISSING_PACKAGES:BOOL=OFF \
\
${SOURCE}
##---------------------------------------------------------------------------##
## end of cmake_macosx.sh
##---------------------------------------------------------------------------##
#!/bin/sh
##---------------------------------------------------------------------------##
## CMAKE FOR MACOSX WITH MCLS LIBRARY
##---------------------------------------------------------------------------##
# CLEANUP
rm -rf CMakeCache.txt
rm -rf CMakeFiles
# SOURCE AND INSTALL
SOURCE=<SET_SOURCE_DIR>
INSTALL=<SET_INSTALL_DIR>
# BUILD OPTIONS
BUILD="DEBUG"
MPI="ON"
# TPL PATHS
HDF5_PATH="/vendors/parallel/hdf5"
MPI_PATH="/opt/mpi/current"
##---------------------------------------------------------------------------##
cmake \
-DCMAKE_BUILD_TYPE:STRING="$BUILD" \
-DTPL_ENABLE_MPI:BOOL=$MPI \
-DCMAKE_INSTALL_PREFIX:PATH=$INSTALL \
\
-DMPI_BASE_DIR:PATH=$MPI_PATH \
\
-DTPL_ENABLE_HDF5:BOOL=ON \
-DHDF5_INCLUDE_DIRS:PATH=$HDF5_PATH/include \
-DHDF5_LIBRARY_DIRS:PATH=$HDF5_PATH/lib \
\
-DProfugus_CONFIGURE_OPTIONS_FILE:FILEPATH="${SOURCE}/install/base.cmake" \
-DProfugus_ASSERT_MISSING_PACKAGES:BOOL=OFF \
-DProfugus_EXTRA_REPOSITORIES="ParaSails;MCLS" \
-DProfugus_ENABLE_MCLS:BOOL=ON \
-DProfugus_ENABLE_ML:BOOL=ON \
\
-DMCLS_ENABLE_DBC:BOOL=ON \
-DMCLS_ENABLE_TESTS:BOOL=OFF \
-DMCLS_ENABLE_EXAMPLES:BOOL=OFF \
-DMCLS_ENABLE_Epetra:BOOL=ON \
-DMCLS_ENABLE_EpetraExt:BOOL=ON \
-DMCLS_ENABLE_Ifpack:BOOL=ON \
-DMCLS_ENABLE_ParaSails:BOOL=ON \
-DMCLS_ENABLE_Thyra:BOOL=ON \
-DMCLS_ENABLE_Stratimikos:BOOL=ON \
\
${SOURCE}
##---------------------------------------------------------------------------##
## end of cmake_macosx_with_mcls.sh
##---------------------------------------------------------------------------##