# cmake configuration script that works on Andy's Linux box with GCC
# Others will need to modify the Trilinos and Netcdf paths.
# This script needs to be run from a subdirectory (e.g. build-linux)
# of the main seacism repository (reflected in the several instances of
# ".." below).

# After this executes, do:
#   make -j 8
#   cp example-drivers/simple_glide/src/simple_glide
#

rm ./CMakeCache.txt

echo
echo "Doing CMake Configuration step"

cmake \
  -D GLIMMER_TRILINOS_DIR=/Users/agsalin/Trilinos/glimmer12/install \
  -D GLIMMER_NETCDF_DIR="/opt/local" \
  -D CMAKE_Fortran_FLAGS="-g -O2 -ffree-line-length-none" \
  -D CMAKE_VERBOSE_MAKEFILE=OFF \
  -D CISM_GNU:BOOL=ON \
  ..

# Note: last argument above  ".."  is path to top seacism directory

# This is the default, second is option for older netcdfs
#  -D GLIMMER_NETCDF_LIBS="netcdff;netcdf" \
#  -D GLIMMER_NETCDF_LIBS="netcdf" \

