mkdir build
cd build
cmake \
-DTrilinos_ENABLE_Amesos=ON \
-DTrilinos_ENABLE_Epetra=ON \
-DTrilinos_ENABLE_Ifpack=ON \
-DTrilinos_ENABLE_AztecOO=ON \
-DTrilinos_ENABLE_Sacado=ON \
-DTrilinos_ENABLE_Teuchos=ON \
-DTrilinos_ENABLE_MueLu=ON \
-DTrilinos_ENABLE_ML=ON \
-DTrilinos_VERBOSE_CONFIGURE=OFF \
-DTPL_ENABLE_MPI=ON \
-DTPL_ENABLE_BLAS:BOOL=ON \
-DTPL_ENABLE_LAPACK:BOOL=ON \
-DBLAS_LIBRARY_NAMES="mkl_intel_lp64;mkl_sequential;mkl_core" \
-DBLAS_LIBRARY_DIRS="/opt/software/common/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64" \
-DLAPACK_LIBRARY_NAMES="" \
-DLAPACK_LIBRARY_DIRS="/opt/software/common/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64" \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX:PATH=$HOME/installed_prog/trilinos \
../
make install