Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/linux/cmake/ConfigUser.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/linux/cmake/ConfigUser.cmake	(revision 27592)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/linux/cmake/ConfigUser.cmake	(revision 27592)
@@ -0,0 +1,308 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
+# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
+# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+##
+## Section 1: Installation paths
+##
+
+# ============================================================================
+# Basic setup begins here.  All settings are optional.  In most cases, setting
+# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
+# reasonable defaults enabled.  Note: If you need to specify directory names
+# with spaces (e.g., on Windows) then you must put them in quotes.
+# ============================================================================
+
+# Installation path (usually defaults to /usr/local) [auto]:
+set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
+
+# Set install name suffix used for directories and gmt executables
+# [undefined]:
+#set (GMT_INSTALL_NAME_SUFFIX "suffix")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Install convenience links for GMT modules. Disable to install only the main
+# gmt program and access modules as "gmt modulename options" [TRUE]:
+#set (GMT_INSTALL_MODULE_LINKS FALSE)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GDAL TRUE)
+#set (GMT_EXCLUDE_PCRE TRUE)
+#set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set path to GSHHG Shoreline Database [auto]:
+set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
+
+# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
+#set (COPY_GSHHG TRUE)
+
+# Set path to DCW Digital Chart of the World for GMT [auto]:
+#set (DCW_ROOT "dcw-gmt_path")
+
+# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
+#set (COPY_DCW TRUE)
+
+# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
+
+# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
+
+# FOR WINDOWS ONLY
+# Set path to location of Ghostscript binaries (optional install)
+#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
+
+# FOR WINDOWS ONLY
+# Set path to location where the gmtmex is located.
+#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack -L/usr/lib/x86_64-linux-gnu -lgfortran")
+set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas -L/usr/lib/x86_64-linux-gnu -lgfortran")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+# set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+#set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+#set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+#set (DO_ANIMATIONS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
+# that link against the full gmt libs (not just the API; for building codes
+# that only need the GMT API, see the gmt-custom project).
+#set (EXTRA_BUILD_DIRS apidemo)
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
+# [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+##	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)
+#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+if (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+else (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+#set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/mac/cmake/ConfigUser.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/mac/cmake/ConfigUser.cmake	(revision 27592)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/mac/cmake/ConfigUser.cmake	(revision 27592)
@@ -0,0 +1,308 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
+# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
+# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+##
+## Section 1: Installation paths
+##
+
+# ============================================================================
+# Basic setup begins here.  All settings are optional.  In most cases, setting
+# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
+# reasonable defaults enabled.  Note: If you need to specify directory names
+# with spaces (e.g., on Windows) then you must put them in quotes.
+# ============================================================================
+
+# Installation path (usually defaults to /usr/local) [auto]:
+set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
+
+# Set install name suffix used for directories and gmt executables
+# [undefined]:
+#set (GMT_INSTALL_NAME_SUFFIX "suffix")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Install convenience links for GMT modules. Disable to install only the main
+# gmt program and access modules as "gmt modulename options" [TRUE]:
+#set (GMT_INSTALL_MODULE_LINKS FALSE)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GDAL TRUE)
+#set (GMT_EXCLUDE_PCRE TRUE)
+#set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set path to GSHHG Shoreline Database [auto]:
+set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
+
+# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
+#set (COPY_GSHHG TRUE)
+
+# Set path to DCW Digital Chart of the World for GMT [auto]:
+#set (DCW_ROOT "dcw-gmt_path")
+
+# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
+#set (COPY_DCW TRUE)
+
+# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
+
+# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
+
+# FOR WINDOWS ONLY
+# Set path to location of Ghostscript binaries (optional install)
+#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
+
+# FOR WINDOWS ONLY
+# Set path to location where the gmtmex is located.
+#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack")
+set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+# set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+#set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+#set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+#set (DO_ANIMATIONS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
+# that link against the full gmt libs (not just the API; for building codes
+# that only need the GMT API, see the gmt-custom project).
+#set (EXTRA_BUILD_DIRS apidemo)
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
+# [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+##	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)
+#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+if (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+else (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+#set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGDAL.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGDAL.cmake	(revision 27592)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGDAL.cmake	(revision 27592)
@@ -0,0 +1,187 @@
+#
+#
+# Locate gdal
+#
+# This module accepts the following environment variables:
+#
+#    GDAL_DIR or GDAL_ROOT - Specify the location of GDAL
+#
+# This module defines the following CMake variables:
+#
+#    GDAL_FOUND - True if libgdal is found
+#    GDAL_LIBRARY - A variable pointing to the GDAL library
+#    GDAL_INCLUDE_DIR - Where to find the headers
+
+#=============================================================================
+# Copyright 2007-2009 Kitware, Inc.
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See COPYING-CMAKE-SCRIPTS for more information.
+#=============================================================================
+# Note: this file is not an exact copy of the original file from Kitware.
+#       It has been modified for the needs of GMT.
+
+#
+# $GDAL_DIR is an environment variable that would
+# correspond to the ./configure --prefix=$GDAL_DIR
+# used in building gdal.
+#
+# Created by Eric Wing. I'm not a gdal user, but OpenSceneGraph uses it
+# for osgTerrain so I whipped this module together for completeness.
+# I actually don't know the conventions or where files are typically
+# placed in distros.
+# Any real gdal users are encouraged to correct this (but please don't
+# break the OS X framework stuff when doing so which is what usually seems
+# to happen).
+
+# This makes the presumption that you are include gdal.h like
+#
+#include "gdal.h"
+
+if (DEFINED GDAL_ROOT AND NOT GDAL_ROOT)
+	set (GDAL_LIBRARY "" CACHE INTERNAL "")
+	set (GDAL_INCLUDE_DIR "" CACHE INTERNAL "")
+	return()
+endif (DEFINED GDAL_ROOT AND NOT GDAL_ROOT)
+
+if (UNIX AND NOT GDAL_FOUND)
+	# Use gdal-config to obtain the library version (this should hopefully
+	# allow us to -lgdal1.x.y where x.y are correct version)
+	# For some reason, libgdal development packages do not contain
+	# libgdal.so...
+	find_program (GDAL_CONFIG gdal-config
+		HINTS
+		${GDAL_DIR}
+		${GDAL_ROOT}
+		$ENV{GDAL_DIR}
+		$ENV{GDAL_ROOT}
+		PATH_SUFFIXES bin
+		PATHS
+		/sw # Fink
+		/opt/local # DarwinPorts
+		/opt/csw # Blastwave
+		/opt
+		/usr/local
+	)
+
+	if (GDAL_CONFIG)
+		execute_process (COMMAND ${GDAL_CONFIG} --cflags
+			ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
+			OUTPUT_VARIABLE GDAL_CONFIG_CFLAGS)
+		if (GDAL_CONFIG_CFLAGS)
+			string (REGEX MATCHALL "-I[^ ]+" _gdal_dashI ${GDAL_CONFIG_CFLAGS})
+			string (REGEX REPLACE "-I" "" _gdal_includepath "${_gdal_dashI}")
+			string (REGEX REPLACE "-I[^ ]+" "" _gdal_cflags_other ${GDAL_CONFIG_CFLAGS})
+		endif (GDAL_CONFIG_CFLAGS)
+		execute_process (COMMAND ${GDAL_CONFIG} --libs
+			ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
+			OUTPUT_VARIABLE GDAL_CONFIG_LIBS)
+		if (GDAL_CONFIG_LIBS)
+			string (REGEX MATCHALL "-l[^ ]+" _gdal_dashl ${GDAL_CONFIG_LIBS})
+			string (REGEX REPLACE "-l" "" _gdal_lib "${_gdal_dashl}")
+			string (REGEX MATCHALL "-L[^ ]+" _gdal_dashL ${GDAL_CONFIG_LIBS})
+			string (REGEX REPLACE "-L" "" _gdal_libpath "${_gdal_dashL}")
+		endif (GDAL_CONFIG_LIBS)
+		execute_process (COMMAND ${GDAL_CONFIG} --dep-libs
+			ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
+			OUTPUT_VARIABLE GDAL_CONFIG_DEP_LIBS)
+		if (GDAL_CONFIG_DEP_LIBS)
+			string (REGEX MATCHALL "-l[^ ]+" _gdal_dashl ${GDAL_CONFIG_DEP_LIBS})
+			string (REGEX REPLACE "-l" "" _gdal_dep_lib "${_gdal_dashl}")
+			string (REGEX MATCHALL "-L[^ ]+" _gdal_dashL ${GDAL_CONFIG_DEP_LIBS})
+			string (REGEX REPLACE "-L" "" _gdal_dep_libpath "${_gdal_dashL}")
+		endif (GDAL_CONFIG_DEP_LIBS)
+	endif (GDAL_CONFIG)
+	if (_gdal_dep_lib)
+		list (REMOVE_DUPLICATES _gdal_dep_lib)
+		list (REMOVE_ITEM _gdal_dep_lib gdal)
+	endif (_gdal_dep_lib)
+endif (UNIX AND NOT GDAL_FOUND)
+
+find_path (GDAL_INCLUDE_DIR gdal.h
+	HINTS
+	${_gdal_includepath}
+	${GDAL_DIR}
+	${GDAL_ROOT}
+	$ENV{GDAL_DIR}
+	$ENV{GDAL_ROOT}
+	PATH_SUFFIXES
+	include/gdal
+	include/GDAL
+	include
+	PATHS
+	~/Library/Frameworks/gdal.framework/Headers
+	/Library/Frameworks/gdal.framework/Headers
+	/sw # Fink
+	/opt/local # DarwinPorts
+	/opt/csw # Blastwave
+	/opt
+	/usr/local
+)
+
+find_library (GDAL_LIBRARY
+	NAMES ${_gdal_lib} gdal gdal_i gdal1.5.0 gdal1.4.0 gdal1.3.2 GDAL
+	HINTS
+	${GDAL_DIR}
+	${GDAL_ROOT}
+	$ENV{GDAL_DIR}
+	$ENV{GDAL_ROOT}
+	${_gdal_libpath}
+	PATH_SUFFIXES lib
+	PATHS
+	~/Library/Frameworks/gdal.framework
+	/Library/Frameworks/gdal.framework
+	/sw # Fink
+	/opt/local # DarwinPorts
+	/opt/csw # Blastwave
+	/opt
+	/usr/local
+)
+
+# find all libs that gdal-config --dep-libs reports
+foreach (_extralib ${_gdal_dep_lib})
+	find_library (_found_lib_${_extralib}
+		NAMES ${_extralib}
+		HINTS
+		${NETCDF_ROOT}
+		$ENV{NETCDF_ROOT}
+		${ZLIB_ROOT}
+		$ENV{ZLIB_ROOT}
+		${CURL_ROOT}
+		$ENV{CURL_ROOT}
+		PATH_SUFFIXES lib
+		PATHS 
+		${_gdal_dep_libpath}
+	)
+	list (APPEND GDAL_LIBRARY ${_found_lib_${_extralib}})
+endforeach (_extralib)
+
+# append manually-supplied libs
+# find all manually-supplied libs
+if (GDAL_EXTRA_LIBS)
+	# Ensure -l is preceded by whitespace to not match
+	# '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
+	string (REGEX MATCHALL "(^| )-l[^ ]+" _gdal_extra_lib_dashl ${GDAL_EXTRA_LIBS})
+	string (REGEX REPLACE "(^| )-l" "" _gdal_extra_lib "${_gdal_extra_lib_dashl}")
+	string (REGEX MATCHALL "(^| )-L[^ ]+" _gdal_extra_lib_dashL ${GDAL_EXTRA_LIBS})
+	string (REGEX REPLACE "(^| )-L" "" _gdal_extra_libpath "${_gdal_extra_lib_dashL}")
+	foreach (_extralib ${_gdal_extra_lib})
+		find_library (_found_lib_${_extralib}
+			NAMES ${_extralib}
+			PATH_SUFFIXES lib
+			PATHS 
+			${_gdal_extra_libpath}
+		)
+		list (APPEND GDAL_LIBRARY ${_found_lib_${_extralib}})
+	endforeach (_extralib)
+endif (GDAL_EXTRA_LIBS)
+
+include (FindPackageHandleStandardArgs)
+find_package_handle_standard_args (GDAL DEFAULT_MSG GDAL_LIBRARY GDAL_INCLUDE_DIR)
+
+set (GDAL_LIBRARIES ${GDAL_LIBRARY})
+set (GDAL_INCLUDE_DIRS ${GDAL_INCLUDE_DIR})
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGSHHG.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGSHHG.cmake	(revision 27592)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindGSHHG.cmake	(revision 27592)
@@ -0,0 +1,95 @@
+#
+#
+# Locate GSHHG shorelines
+#
+# This module accepts the following environment variables:
+#
+#  GSHHG_ROOT, GSHHGDIR - Specify the location of GSHHG
+#
+# This module defines the following CMake variables:
+#
+#    GSHHG_FOUND        - True if GSHHG is found
+#    GSHHG_PATH         - A variable pointing to the GSHHG path
+#    GSHHG_VERSION      - String of the GSHHG version found
+#    GSHHG_MIN_REQUIRED_VERSION_{MAJOR, MINOR, PATCH}
+#                       - Major, minor, and patch version required
+
+# get GSHHG path
+find_path (GSHHG_PATH
+	NAMES binned_GSHHS_c.nc
+	HINTS ${GSHHG_ROOT} $ENV{GSHHG_ROOT} $ENV{GSHHGDIR}
+	PATH_SUFFIXES
+	gmt-gshhg
+	gshhg
+	gshhg-gmt
+	gshhg-gmt-nc4
+	share/gmt/gshhg
+	share/gmt-gshhg
+	share/gshhg
+	share/gshhg-gmt
+	share/gshhg-gmt-nc4
+	PATHS
+	${CMAKE_SOURCE_DIR}
+	/sw # Fink
+	/opt/local # DarwinPorts
+	/opt/csw # Blastwave
+	/opt
+	/usr/local
+	DOC "Global Self-consistent Hierarchical High-resolution Geography"
+)
+
+# get GSHHG file
+if (GSHHG_PATH)
+	find_file (_GSHHG_FILE
+		NAMES binned_GSHHS_c.nc
+		HINTS ${GSHHG_PATH})
+endif (GSHHG_PATH)
+
+# The minimum required GSHHG version
+set (GSHHG_MIN_REQUIRED_VERSION_MAJOR 2 CACHE INTERNAL "GSHHG required version major")
+set (GSHHG_MIN_REQUIRED_VERSION_MINOR 2 CACHE INTERNAL "GSHHG required version minor")
+set (GSHHG_MIN_REQUIRED_VERSION_PATCH 0 CACHE INTERNAL "GSHHG required version patch")
+set (GSHHG_MIN_REQUIRED_VERSION
+	"${GSHHG_MIN_REQUIRED_VERSION_MAJOR}.${GSHHG_MIN_REQUIRED_VERSION_MINOR}.${GSHHG_MIN_REQUIRED_VERSION_PATCH}")
+
+# Temporary hack to bypass failure of compilation of code to find GSHHG
+set (GSHHG_FOUND TRUE)
+set (GSHHG_VERSION "2.3.4" CACHE INTERNAL "GSHHG version")
+
+# check GSHHG version
+if (_GSHHG_FILE AND NOT GSHHG_FOUND)
+	try_run (_EXIT_GSHHG_VERSION _COMPILED_GSHHG_VERSION
+		${CMAKE_BINARY_DIR}/CMakeTmp
+		${CMAKE_CURRENT_SOURCE_DIR}/gshhg_version.c
+		CMAKE_FLAGS
+		-DINCLUDE_DIRECTORIES=${NETCDF_INCLUDE_DIR}
+		-DLINK_LIBRARIES=${NETCDF_LIBRARIES}
+		COMPILE_DEFINITIONS -DSTANDALONE
+		COMPILE_OUTPUT_VARIABLE _GSHHG_VERSION_COMPILE_OUT
+		RUN_OUTPUT_VARIABLE _GSHHG_VERSION_STRING
+		ARGS \"${_GSHHG_FILE}\" ${GSHHG_MIN_REQUIRED_VERSION})
+
+	if (NOT _COMPILED_GSHHG_VERSION OR _EXIT_GSHHG_VERSION STREQUAL FAILED_TO_RUN)
+		message(FATAL_ERROR "Cannot determine GSHHG version:\n
+		${_GSHHG_VERSION_COMPILE_OUT}\n
+		${_GSHHG_VERSION_STRING}")
+	endif ()
+
+	# check version string
+	if (_COMPILED_GSHHG_VERSION)
+		# strip whitespace
+		string (STRIP ${_GSHHG_VERSION_STRING} GSHHG_VERSION)
+		if (_EXIT_GSHHG_VERSION EQUAL 0)
+			# found GSHHG of required version or higher
+			set (GSHHG_VERSION ${GSHHG_VERSION} CACHE INTERNAL "GSHHG version")
+		elseif (_EXIT_GSHHG_VERSION EQUAL -1)
+			# found GSHHG but version is too old
+			message (WARNING "GSHHG found but it is too old (${GSHHG_VERSION}). "
+				"Need at least ${GSHHG_MIN_REQUIRED_VERSION}.")
+		endif (_EXIT_GSHHG_VERSION EQUAL 0)
+	endif (_COMPILED_GSHHG_VERSION)
+endif (_GSHHG_FILE AND NOT GSHHG_FOUND)
+
+include (FindPackageHandleStandardArgs)
+find_package_handle_standard_args (GSHHG DEFAULT_MSG
+	GSHHG_PATH GSHHG_VERSION)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindNETCDF.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindNETCDF.cmake	(revision 27592)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/cmake/modules/FindNETCDF.cmake	(revision 27592)
@@ -0,0 +1,179 @@
+#
+#
+# Locate netcdf
+#
+# This module accepts the following environment variables:
+#
+#    NETCDF_DIR or NETCDF_ROOT - Specify the location of NetCDF
+#
+# This module defines the following CMake variables:
+#
+#    NETCDF_FOUND - True if libnetcdf is found
+#    NETCDF_LIBRARY - A variable pointing to the NetCDF library
+#    NETCDF_INCLUDE_DIR - Where to find the headers
+#    NETCDF_INCLUDE_DIRS - Where to find the headers
+#    NETCDF_DEFINITIONS - Extra compiler flags
+
+#=============================================================================
+# Inspired by FindGDAL
+#
+# Distributed under the OSI-approved bsd license (the "License")
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See COPYING-CMAKE-SCRIPTS for more information.
+#=============================================================================
+
+# This makes the presumption that you are include netcdf.h like
+#
+#include "netcdf.h"
+
+if (UNIX AND NOT NETCDF_FOUND)
+	# Use nc-config to obtain the libraries
+	find_program (NETCDF_CONFIG nc-config
+		HINTS
+		${NETCDF_DIR}
+		${NETCDF_ROOT}
+		$ENV{NETCDF_DIR}
+		$ENV{NETCDF_ROOT}
+		PATH_SUFFIXES bin
+		PATHS
+		/sw # Fink
+		/opt/local # DarwinPorts
+		/opt/csw # Blastwave
+		/opt
+		/usr/local
+	)
+
+	if (NETCDF_CONFIG)
+		execute_process (COMMAND ${NETCDF_CONFIG} --cflags
+			ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
+			OUTPUT_VARIABLE NETCDF_CONFIG_CFLAGS)
+		if (NETCDF_CONFIG_CFLAGS)
+			string (REGEX MATCHALL "(^| )-I[^ ]+" _netcdf_dashI ${NETCDF_CONFIG_CFLAGS})
+			string (REGEX REPLACE "(^| )-I" "" _netcdf_includepath "${_netcdf_dashI}")
+			string (REGEX REPLACE "(^| )-I[^ ]+" "" _netcdf_cflags_other ${NETCDF_CONFIG_CFLAGS})
+		endif (NETCDF_CONFIG_CFLAGS)
+		execute_process (COMMAND ${NETCDF_CONFIG} --libs
+			ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE
+			OUTPUT_VARIABLE NETCDF_CONFIG_LIBS)
+		if (NETCDF_CONFIG_LIBS)
+			# Ensure -l is preceded by whitespace to not match
+			# '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
+			string (REGEX MATCHALL "(^| )-l[^ ]+" _netcdf_dashl ${NETCDF_CONFIG_LIBS})
+			string (REGEX REPLACE "(^| )-l" "" _netcdf_lib "${_netcdf_dashl}")
+			string (REGEX MATCHALL "(^| )-L[^ ]+" _netcdf_dashL ${NETCDF_CONFIG_LIBS})
+			string (REGEX REPLACE "(^| )-L" "" _netcdf_libpath "${_netcdf_dashL}")
+		endif (NETCDF_CONFIG_LIBS)
+	endif (NETCDF_CONFIG)
+	if (_netcdf_lib)
+		list (REMOVE_DUPLICATES _netcdf_lib)
+		list (REMOVE_ITEM _netcdf_lib netcdf)
+	endif (_netcdf_lib)
+endif (UNIX AND NOT NETCDF_FOUND)
+
+find_path (NETCDF_INCLUDE_DIR netcdf.h
+	HINTS
+	${_netcdf_includepath}
+	${NETCDF_DIR}
+	${NETCDF_ROOT}
+	$ENV{NETCDF_DIR}
+	$ENV{NETCDF_ROOT}
+	PATH_SUFFIXES
+	include/netcdf
+	include/netcdf-4
+	include/netcdf-3
+	include
+	PATHS
+	/sw # Fink
+	/opt/local # DarwinPorts
+	/opt/csw # Blastwave
+	/opt
+	/usr/local
+)
+
+find_library (NETCDF_LIBRARY
+	NAMES netcdf
+	HINTS
+	${_netcdf_libpath}
+	${NETCDF_DIR}
+	${NETCDF_ROOT}
+	$ENV{NETCDF_DIR}
+	$ENV{NETCDF_ROOT}
+	PATH_SUFFIXES lib
+	PATHS
+	/sw
+	/opt/local
+	/opt/csw
+	/opt
+	/usr/local
+)
+
+# find all libs that nc-config reports
+foreach (_extralib ${_netcdf_lib})
+	find_library (_found_lib_${_extralib}
+		NAMES ${_extralib}
+		HINTS
+		${ZLIB_ROOT}
+		$ENV{ZLIB_ROOT}
+		${CURL_ROOT}
+		$ENV{CURL_ROOT}
+		PATH_SUFFIXES lib
+		PATHS 
+		${_netcdf_libpath}
+	)
+	list (APPEND NETCDF_LIBRARY ${_found_lib_${_extralib}})
+endforeach (_extralib)
+
+# find all manually-supplied libs
+if (NETCDF_EXTRA_LIBS)
+	# Ensure -l is preceded by whitespace to not match
+	# '-l' in '-L/usr/lib/x86_64-linux-gnu/hdf5/serial'
+	string (REGEX MATCHALL "(^| )-l[^ ]+" _netcdf_extra_lib_dashl ${NETCDF_EXTRA_LIBS})
+	string (REGEX REPLACE "(^| )-l" "" _netcdf_extra_shared_lib "${_netcdf_extra_lib_dashl}")
+	string (REGEX MATCHALL "(^| )-L[^ ]+" _netcdf_extra_lib_dashL ${NETCDF_EXTRA_LIBS})
+	string (REGEX REPLACE "(^| )-L" "" _netcdf_extra_libpath "${_netcdf_extra_lib_dashL}")
+	foreach (_extralib ${_netcdf_extra_shared_lib})
+		find_library (_found_lib_${_extralib}
+			NAMES ${_extralib}
+			PATH_SUFFIXES lib
+			PATHS 
+			${_netcdf_extra_libpath}
+		)
+		list (APPEND NETCDF_LIBRARY ${_found_lib_${_extralib}})
+	endforeach (_extralib)
+	# Retrieve static library names
+	string(REGEX MATCHALL "[a-zA-Z0-9]+\\.a" _netcdf_extra_static_lib "${NETCDF_EXTRA_LIBS}")
+	foreach (_extralib ${_netcdf_extra_static_lib})
+		find_library (_found_lib_${_extralib}
+			NAMES ${_extralib}
+			PATH_SUFFIXES lib
+			PATHS 
+			${_netcdf_extra_libpath}
+		)
+		list (APPEND NETCDF_LIBRARY ${_found_lib_${_extralib}})
+	endforeach (_extralib)
+endif (NETCDF_EXTRA_LIBS)
+
+if (NETCDF_LIBRARY AND NETCDF_INCLUDE_DIR AND NOT HAVE_NETCDF4)
+	# Ensure that NetCDF with version 4 extensions is installed
+	include (CMakePushCheckState)
+	include (CheckSymbolExists)
+	cmake_push_check_state() # save state of CMAKE_REQUIRED_*
+	set (CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${NETCDF_INCLUDE_DIR})
+	set (CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${NETCDF_LIBRARY})
+	set (HAVE_NETCDF4 HAVE_NETCDF4) # to force check_symbol_exists again
+	check_symbol_exists (nc_def_var_deflate netcdf.h HAVE_NETCDF4)
+	cmake_pop_check_state() # restore state of CMAKE_REQUIRED_*
+	if (NOT HAVE_NETCDF4)
+		message (SEND_ERROR "Library found but netCDF-4/HDF5 format unsupported. Do not configure netCDF-4 with --disable-netcdf-4.")
+	endif (NOT HAVE_NETCDF4)
+endif (NETCDF_LIBRARY AND NETCDF_INCLUDE_DIR AND NOT HAVE_NETCDF4)
+
+include (FindPackageHandleStandardArgs)
+find_package_handle_standard_args (NETCDF
+	DEFAULT_MSG NETCDF_LIBRARY NETCDF_INCLUDE_DIR HAVE_NETCDF4)
+
+set (NETCDF_LIBRARIES ${NETCDF_LIBRARY})
+set (NETCDF_INCLUDE_DIRS ${NETCDF_INCLUDE_DIR})
+string (REPLACE "-DNDEBUG" "" NETCDF_DEFINITIONS "${_netcdf_cflags_other}")
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/linux/cmake/ConfigUser.static.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/linux/cmake/ConfigUser.static.cmake	(revision 27592)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/linux/cmake/ConfigUser.static.cmake	(revision 27592)
@@ -0,0 +1,308 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
+# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
+# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+##
+## Section 1: Installation paths
+##
+
+# ============================================================================
+# Basic setup begins here.  All settings are optional.  In most cases, setting
+# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
+# reasonable defaults enabled.  Note: If you need to specify directory names
+# with spaces (e.g., on Windows) then you must put them in quotes.
+# ============================================================================
+
+# Installation path (usually defaults to /usr/local) [auto]:
+set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
+
+# Set install name suffix used for directories and gmt executables
+# [undefined]:
+#set (GMT_INSTALL_NAME_SUFFIX "suffix")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Install convenience links for GMT modules. Disable to install only the main
+# gmt program and access modules as "gmt modulename options" [TRUE]:
+#set (GMT_INSTALL_MODULE_LINKS FALSE)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GDAL TRUE)
+set (GMT_EXCLUDE_PCRE TRUE)
+set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set path to GSHHG Shoreline Database [auto]:
+set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
+
+# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
+set (COPY_GSHHG TRUE)
+
+# Set path to DCW Digital Chart of the World for GMT [auto]:
+#set (DCW_ROOT "dcw-gmt_path")
+
+# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
+#set (COPY_DCW TRUE)
+
+# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
+
+# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
+
+# FOR WINDOWS ONLY
+# Set path to location of Ghostscript binaries (optional install)
+#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
+
+# FOR WINDOWS ONLY
+# Set path to location where the gmtmex is located.
+#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack -L/usr/lib/x86_64-linux-gnu -lgfortran")
+set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas -L/usr/lib/x86_64-linux-gnu -lgfortran")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+# set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+#set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+#set (DO_ANIMATIONS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
+# that link against the full gmt libs (not just the API; for building codes
+# that only need the GMT API, see the gmt-custom project).
+#set (EXTRA_BUILD_DIRS apidemo)
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
+# [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+##	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)
+#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+if (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+else (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/mac/cmake/ConfigUser.static.cmake
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/mac/cmake/ConfigUser.static.cmake	(revision 27592)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/mac/cmake/ConfigUser.static.cmake	(revision 27592)
@@ -0,0 +1,308 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by the
+# Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
+# for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+# ----------------------------------------------------------------------------
+
+# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
+# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
+# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
+# (currently listed in .gitignore).
+#
+# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
+# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
+# "False", "off", "no", and "something-NotFound" are all false).  Other values
+# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
+# OFF, or YES and NO for your booleans.
+
+##
+## Section 1: Installation paths
+##
+
+# ============================================================================
+# Basic setup begins here.  All settings are optional.  In most cases, setting
+# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
+# reasonable defaults enabled.  Note: If you need to specify directory names
+# with spaces (e.g., on Windows) then you must put them in quotes.
+# ============================================================================
+
+# Installation path (usually defaults to /usr/local) [auto]:
+set (CMAKE_INSTALL_PREFIX "$ENV{PREFIX}")
+
+# Set install name suffix used for directories and gmt executables
+# [undefined]:
+#set (GMT_INSTALL_NAME_SUFFIX "suffix")
+
+# Install into traditional directory structure. Disable to install a
+# distribution type directory structure (doc and share separated) [on]:
+#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
+
+# Install convenience links for GMT modules. Disable to install only the main
+# gmt program and access modules as "gmt modulename options" [TRUE]:
+#set (GMT_INSTALL_MODULE_LINKS FALSE)
+
+# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
+set (GMT_INSTALL_RELOCATABLE TRUE)
+
+# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
+#set (GMT_EXCLUDE_GDAL TRUE)
+set (GMT_EXCLUDE_PCRE TRUE)
+set (GMT_EXCLUDE_PCRE2 TRUE)
+#set (GMT_EXCLUDE_FFTW3 TRUE)
+#set (GMT_EXCLUDE_LAPACK TRUE)
+#set (GMT_EXCLUDE_BLAS TRUE)
+#set (GMT_EXCLUDE_ZLIB TRUE)
+
+# ============================================================================
+# Advanced configuration begins here.  Usually it is not necessary to edit any
+# settings below.  You should know what you are doing if you do though.  Note:
+# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
+# path is given.
+# ============================================================================
+
+# Set binary installation path [bin]:
+#set (GMT_BINDIR "bin")
+
+# Set library installation path [lib or lib64]:
+#set (GMT_LIBDIR "lib")
+
+# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_INCLUDEDIR "include/gmt")
+
+# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DATADIR "share/gmt")
+
+# Set doc installation path [share/doc or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
+#set (GMT_DOCDIR "share/doc/gmt")
+
+# Set manpage installation path [share/man or
+# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
+#set (GMT_MANDIR "share/doc/gmt/man")
+
+# Install documentation files from this external location instead of creating
+# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
+#set (GMT_INSTALL_EXTERNAL_DOC OFF)
+
+# Install manual pages from this external location instead of creating the
+# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
+#set (GMT_INSTALL_EXTERNAL_MAN OFF)
+
+##
+## Section 2: Build dependencies (should only be needed if CMake cannot
+## automatically detect the rights version or path.)
+##
+
+# Set URL to GMT Data server [auto]:
+#set (GMT_DATA_SERVER "data_server_url")
+
+# Set path to GSHHG Shoreline Database [auto]:
+set (GSHHG_ROOT "$ENV{GSHHG_ROOT}")
+
+# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
+set (COPY_GSHHG TRUE)
+
+# Set path to DCW Digital Chart of the World for GMT [auto]:
+#set (DCW_ROOT "dcw-gmt_path")
+
+# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
+#set (COPY_DCW TRUE)
+
+# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
+
+# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
+#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
+
+# FOR WINDOWS ONLY
+# Set path to location of Ghostscript binaries (optional install)
+#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
+
+# FOR WINDOWS ONLY
+# Set path to location where the gmtmex is located.
+#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
+
+# Set location of NetCDF (can be root directory, path to header file or path
+# to nc-config) [auto]:
+set (NETCDF_ROOT "$ENV{NETCDF_ROOT}")
+
+# Set location of GDAL (can be root directory, path to header file or path to
+# gdal-config) [auto]:
+set (GDAL_ROOT "$ENV{GDAL_ROOT}")
+
+# Set location of PCRE (can be root directory, path to header file or path to
+# pcre-config) [auto]:
+#set (PCRE_ROOT "pcre_install_prefix")
+# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
+# pcre2-config) [auto]:
+#set (PCRE2_ROOT "pcre2_install_prefix")
+
+# Set location of single precision FFTW (can be root directory or path to
+# header file) [auto]:
+#set (FFTW3_ROOT "fftw_install_prefix")
+
+# Set location of ZLIB (can be root directory or path to header file) [auto]:
+set (ZLIB_ROOT "$ENV{ZLIB_ROOT}")
+
+# Set location of CURL (can be root directory or path to header file) [auto]:
+#set (CURL_ROOT "curl_install_prefix")
+
+# Set location of GLIB component gthread [auto].  This is an optional (and
+# experimental) option which you need to enable:
+#set (GMT_USE_THREADS TRUE)
+# If pkg-config is not installed (e.g. on Windows) you need to specify these:
+#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
+#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
+
+# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
+#set (LAPACK_LIBRARY "-L$ENV{LAPACK_ROOT} -lflapack")
+#set (BLAS_LIBRARY "-L$ENV{BLAS_ROOT} -lfblas")
+
+##
+## Section 3: GMT features
+##
+
+# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
+# redistributed under the terms of the GPL or LGPL such as Shewchuk's
+# triangulation (valid values are GPL, LGPL and off) [off]:
+#set (LICENSE_RESTRICTED GPL)
+
+# Allow building of OpenMP if compiler supports it
+# set (GMT_ENABLE_OPENMP TRUE)
+
+# Configure default units (possible values are SI and US) [SI]:
+#set (UNITS "US")
+
+# Enable building of shared libraries [TRUE] (disable to use static libraries;
+# not recommended; on non-x86 architectures uncomment the next option as well):
+set (BUILD_SHARED_LIBS FALSE)
+
+# Create position independent code on all targets [auto] (needed for static
+# build on non-x86):
+#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+
+# Build GMT shared lib with supplemental modules [TRUE]:
+#set (BUILD_SUPPLEMENTS FALSE)
+
+# Build/Install GMT Developer include files [TRUE]:
+# This installs the extra include files and configured files needed by 3rd-party
+# developers.  Until we build a separate gmt-devel we include them in the main
+# Distribution.
+#set (BUILD_DEVELOPER FALSE)
+
+##
+## Section 4: Advanced tweaking
+##
+
+#
+# Testing and development
+#
+
+# Enable running examples/tests with "ctest" or "make check" (out-of-source).
+# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
+# line.
+#enable_testing()
+#set (DO_EXAMPLES TRUE)
+#set (DO_TESTS TRUE)
+#set (DO_ANIMATIONS TRUE)
+# Number of parallel test jobs with "make check":
+#set (N_TEST_JOBS 4)
+
+# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
+# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
+# for testing [OFF]:
+#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
+
+# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
+# that link against the full gmt libs (not just the API; for building codes
+# that only need the GMT API, see the gmt-custom project).
+#set (EXTRA_BUILD_DIRS apidemo)
+# Uncomment the following line to enable running low-level C tests of the API
+#set (DO_API_TESTS ON)
+
+# Directory in which to install the release sources per default
+# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
+#set (GMT_RELEASE_PREFIX "release-src-prefix")
+
+# If set to false, image conversion from PS images to PNG and PDF does
+# not depend on the gmt binary target. Note: "make gmt" is then required
+# before docs_depends [TRUE].
+#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
+
+#
+# Debugging
+#
+
+# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
+# [Release]:
+#set (CMAKE_BUILD_TYPE Debug)
+
+# Extra debugging for developers:
+#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
+##	So Xcode can find the supplemental plug-ins during debug sessions
+#	add_definitions(-DXCODER)
+#   add_definitions(-DDEBUG_MODERN)			# To set PPID == 0 during Xcode test
+#	message("Add Xcode definition for GMT")
+#endif()
+#add_definitions(-DDEBUG)
+#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
+#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
+#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
+#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
+#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
+if (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
+else (HAVE_OPENMP)
+	set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
+endif (HAVE_OPENMP)
+
+#
+# System specific tweaks
+#
+
+# This is for GCC on Solaris to avoid "relocations remain against allocatable
+# but non-writable sections" problems:
+#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
+
+# This may be needed to enable strdup and extended math functions with GCC and
+# Suncc on Solaris:
+#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
+
+# Do not warn when building with Windows SDK or Visual Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
+
+# Manually select runtime library when compiling with Windows SDK or Visual
+# Studio Express:
+#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
+
+# If your NetCDF library is static (not recommended, applies to Windows only)
+set (NETCDF_STATIC TRUE)
+
+# If want to rename the DLLs to something else than the default (e.g. to
+# append the bitness - Windows only)
+# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
+#if (WIN32)
+# set (BITAGE 32)
+# # Detect if we are building a 32 or 64 bits version
+# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+#   set (BITAGE 64)
+# endif ()
+# set (GMT_DLL_RENAME gmt_w${BITAGE})
+# set (PSL_DLL_RENAME psl_w${BITAGE})
+#endif(WIN32)
+
+# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
+#if(MSVC11)
+#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
+#endif(MSVC11)
Index: /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/src/CMakeLists.txt
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/src/CMakeLists.txt	(revision 27592)
+++ /issm/trunk-jpl/externalpackages/gmt/configs/6.0/static/src/CMakeLists.txt	(revision 27592)
@@ -0,0 +1,730 @@
+#
+#
+# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
+# See LICENSE.TXT file for copying and redistribution conditions.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; version 3 or any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Lesser General Public License for more details.
+#
+# Contact info: www.generic-mapping-tools.org
+#-------------------------------------------------------------------------------
+#
+# To modify the cmake process: Edit your cmake/ConfigUser.cmake file
+#
+# src/CMakeLists.txt
+#
+
+include (ManageString)
+include (GmtHelperMacros)
+
+if (UNIX AND NOT APPLE)
+	set (LINUX TRUE)
+else (UNIX AND NOT APPLE)
+	set (LINUX FALSE)
+endif (UNIX AND NOT APPLE)
+
+# On Windows do not prefix the DLLs with the 'lib' prefix
+if (WIN32)
+	set(LIB_PREFIX "")
+else (WIN32)
+	set(LIB_PREFIX "lib")
+endif (WIN32)
+
+# Include CREATE_DEBUG_SYM macro and set DEBUG_BUILD
+include (CreateDebugSym)
+
+# Find executable needed by gmt
+find_program (OGR2OGR ogr2ogr)
+if (NOT OGR2OGR)
+	message (WARNING "Cannot find program ogr2ogr - gmt will be unable to convert Shapefiles to GMT/OGR format")
+	set (GMT_CONFIG_OGR2OGR_MESSAGE "no" CACHE INTERNAL "OGR2OGR config message")
+else (NOT OGR2OGR)
+	execute_process(COMMAND ogr2ogr --version OUTPUT_VARIABLE answer OUTPUT_STRIP_TRAILING_WHITESPACE)
+	string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" answer "${answer}")
+	set (GMT_CONFIG_OGR2OGR_MESSAGE "yes (${answer})" CACHE INTERNAL "OGR2OGR config message")
+endif (NOT OGR2OGR)
+
+# Find executable needed by psconvert
+find_program (GDAL_TRANSLATE gdal_translate)
+if (NOT GDAL_TRANSLATE)
+	message (WARNING "Cannot find program gdal_translate - psconvert will be unable to convert TIFF to GeoTIFF")
+	set (GMT_CONFIG_GDAL_TRANSLATE_MESSAGE "no" CACHE INTERNAL "GDAL_TRANSLATE config message")
+else (NOT GDAL_TRANSLATE)
+	execute_process(COMMAND gdal_translate --version OUTPUT_VARIABLE answer OUTPUT_STRIP_TRAILING_WHITESPACE)
+	string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" answer "${answer}")
+	set (GMT_CONFIG_GDAL_TRANSLATE_MESSAGE "yes (${answer})" CACHE INTERNAL "GDAL_TRANSLATE config message")
+endif (NOT GDAL_TRANSLATE)
+
+# Find executables needed by movie
+find_program (GM gm)
+if (NOT GM)
+	message (WARNING "Cannot find GraphicsMagick program gm - gmt movie will be unable to make animated GIFs")
+	set (GMT_CONFIG_GM_MESSAGE "no" CACHE INTERNAL "GM config message")
+else (NOT GM)
+	execute_process(COMMAND gm help OUTPUT_VARIABLE answer OUTPUT_STRIP_TRAILING_WHITESPACE)
+	string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" answer "${answer}")
+	set (GMT_CONFIG_GM_MESSAGE "yes (${answer})" CACHE INTERNAL "GM config message")
+endif (NOT GM)
+
+find_program (FFMPEG ffmpeg)
+if (NOT FFMPEG)
+	message (WARNING "Cannot find ffmpeg - gmt movie will be unable to make movies from frames")
+	set (GMT_CONFIG_FFMPEG_MESSAGE "no" CACHE INTERNAL "FFMPEG config message")
+else (NOT FFMPEG)
+	execute_process(COMMAND ffmpeg -version OUTPUT_VARIABLE answer OUTPUT_STRIP_TRAILING_WHITESPACE)
+	string (REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" answer "${answer}")
+	set (GMT_CONFIG_FFMPEG_MESSAGE "yes (${answer})" CACHE INTERNAL "FFMPEG config message")
+endif (NOT FFMPEG)
+
+# Find executable needed by docs
+if (LINUX)
+	find_program (XDGOPEN xdg-open)
+	if (NOT XDGOPEN)
+		message (WARNING "Cannot find program xdg-open - gmt docs will be unable to open the documentation")
+		set (GMT_CONFIG_OPEN_MESSAGE "no" CACHE INTERNAL "OPEN config message")
+	else (NOT XDGOPEN)
+		set (GMT_CONFIG_OPEN_MESSAGE "yes" CACHE INTERNAL "OPEN config message")
+	endif (NOT XDGOPEN)
+else (LINUX)
+	set (GMT_CONFIG_OPEN_MESSAGE "yes" CACHE INTERNAL "OPEN config message")
+endif (LINUX)
+
+# Find executable needed by psconvert
+if (WIN32)
+	set (GMT_CONFIG_GS_MESSAGE "yes" CACHE INTERNAL "GS config message")
+else (WIN32)
+	find_program (GS gs)
+	if (NOT GS)
+		message (WARNING "Cannot find ghostscript program gs - gmt psconvert will be unable to convert PostScript to other formats")
+		set (GMT_CONFIG_GS_MESSAGE "no" CACHE INTERNAL "GS config message")
+	else (NOT GS)
+		execute_process(COMMAND gs --version OUTPUT_VARIABLE answer OUTPUT_STRIP_TRAILING_WHITESPACE)
+		set (GMT_CONFIG_GS_MESSAGE "yes (${answer})" CACHE INTERNAL "GS config message")
+	endif (NOT GS)
+endif (WIN32)
+
+# Find libraries
+message (STATUS "Searching dependent libraries. This may take a few minutes...")
+# NetCDF is required
+find_package (NETCDF REQUIRED)
+include_directories (${NETCDF_INCLUDE_DIR})
+
+# libcurl is required since 5.4
+include_directories ($ENV{CURL_INCLUDE_DIRS})
+list (APPEND GMT_OPTIONAL_LIBRARIES $ENV{CURL_LIBRARIES})
+
+if (NOT DEFINED GMT_EXCLUDE_GDAL)
+	find_package (GDAL)
+endif (NOT DEFINED GMT_EXCLUDE_GDAL)
+if (GDAL_FOUND)
+	set (HAVE_GDAL TRUE CACHE INTERNAL "System has GDAL")
+	include_directories (${GDAL_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${GDAL_LIBRARIES})
+endif (GDAL_FOUND)
+
+if (NOT DEFINED GMT_EXCLUDE_PCRE)
+	find_package (PCRE)
+endif (NOT DEFINED GMT_EXCLUDE_PCRE)
+if (NOT PCRE_FOUND AND NOT DEFINED GMT_EXCLUDE_PCRE2)
+	find_package (PCRE2)
+endif (NOT PCRE_FOUND AND NOT DEFINED GMT_EXCLUDE_PCRE2)
+if (PCRE_FOUND)
+	set (HAVE_PCRE TRUE CACHE INTERNAL "System has PCRE")
+	set (GMT_CONFIG_REGEX_MESSAGE "PCRE (${PCRE_LIBRARIES})"
+		CACHE INTERNAL "Regex config message")
+	include_directories (${PCRE_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${PCRE_LIBRARIES})
+elseif (PCRE2_FOUND)
+	set (HAVE_PCRE2 TRUE CACHE INTERNAL "System has PCRE2")
+	set (GMT_CONFIG_REGEX_MESSAGE "PCRE2 (${PCRE2_LIBRARIES})"
+		CACHE INTERNAL "Regex config message")
+	include_directories (${PCRE2_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${PCRE2_LIBRARIES})
+else (PCRE_FOUND)
+	find_package (REGEX)
+	if (REGEX_FOUND)
+		set (HAVE_POSIX_ERE TRUE CACHE INTERNAL "System has regex.h")
+		set (GMT_CONFIG_REGEX_MESSAGE "POSIX Regex (${REGEX_INCLUDE_DIR}/regex.h)"
+			CACHE INTERNAL "Regex config message")
+		include_directories (${REGEX_INCLUDE_DIR})
+		# I don't think its needed but just in case:
+		list (APPEND GMT_OPTIONAL_LIBRARIES ${REGEX_LIBRARIES})
+	else (REGEX_FOUND)
+		set (GMT_CONFIG_REGEX_MESSAGE "unsupported"
+			CACHE INTERNAL "Regex config message")
+	endif (REGEX_FOUND)
+endif (PCRE_FOUND)
+
+if (NOT DEFINED GMT_EXCLUDE_FFTW3)
+	find_package (FFTW3)
+endif (NOT DEFINED GMT_EXCLUDE_FFTW3)
+if (FFTW3_FOUND)
+	set (HAVE_FFTW3F TRUE CACHE INTERNAL "System has single precision FFTW")
+	if (FFTW3F_THREADS_LIBRARY)
+		set (HAVE_FFTW3F_THREADS TRUE CACHE INTERNAL "System has single precision threaded FFTW")
+	endif (FFTW3F_THREADS_LIBRARY)
+	include_directories (${FFTW3_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${FFTW3F_LIBRARIES})
+endif (FFTW3_FOUND)
+
+if (NOT DEFINED GMT_EXCLUDE_LAPACK)
+	find_package (LAPACK)
+endif (NOT DEFINED GMT_EXCLUDE_LAPACK)
+if (LAPACK_FOUND)
+	set (HAVE_LAPACK TRUE CACHE INTERNAL "System has LAPACK")
+	set (GMT_CONFIG_LAPACK_MESSAGE "yes" CACHE INTERNAL "LAPACK config message")
+	include_directories (${LAPACK_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${LAPACK_LIBRARIES})
+else (LAPACK_FOUND)
+	if (LAPACK_LIBRARY)
+		# Set in ConfigUser.cmake
+		set (HAVE_LAPACK TRUE CACHE INTERNAL "System has LAPACK")
+		set (GMT_CONFIG_LAPACK_MESSAGE "yes" CACHE INTERNAL "LAPACK config message")
+		list (APPEND GMT_OPTIONAL_LIBRARIES ${LAPACK_LIBRARY})
+	else (LAPACK_LIBRARY)
+		set (GMT_CONFIG_LAPACK_MESSAGE "no" CACHE INTERNAL "LAPACK config message")
+	endif (LAPACK_LIBRARY)
+endif (LAPACK_FOUND)
+
+if (NOT DEFINED GMT_EXCLUDE_BLAS)
+	find_package (BLAS)
+endif (NOT DEFINED GMT_EXCLUDE_BLAS)
+if (BLAS_FOUND)
+	set (HAVE_BLAS TRUE CACHE INTERNAL "System has BLAS")
+	set (GMT_CONFIG_BLAS_MESSAGE "yes" CACHE INTERNAL "BLAS config message")
+	include_directories (${BLAS_INCLUDE_DIR})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${BLAS_LIBRARIES})
+else (BLAS_FOUND)
+	if (BLAS_LIBRARY)
+		# Set in ConfigUser.cmake
+		set (HAVE_BLAS TRUE CACHE INTERNAL "System has BLAS")
+		set (GMT_CONFIG_BLAS_MESSAGE "yes" CACHE INTERNAL "BLAS config message")
+		list (APPEND GMT_OPTIONAL_LIBRARIES ${BLAS_LIBRARY})
+	else (BLAS_LIBRARY)
+		set (GMT_CONFIG_BLAS_MESSAGE "no" CACHE INTERNAL "BLAS config message")
+	endif (BLAS_LIBRARY)
+endif (BLAS_FOUND)
+
+if (NOT DEFINED GMT_EXCLUDE_ZLIB)
+	find_package (ZLIB)
+endif (NOT DEFINED GMT_EXCLUDE_ZLIB)
+if (ZLIB_FOUND)
+	set (HAVE_ZLIB TRUE CACHE INTERNAL "System has ZLIB")
+	include_directories (${ZLIB_INCLUDE_DIRS})
+endif (ZLIB_FOUND)
+
+
+if (APPLE)
+	# Accelerate framework
+	find_library (ACCELERATE_FRAMEWORK Accelerate)
+	mark_as_advanced (ACCELERATE_FRAMEWORK)
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${ACCELERATE_FRAMEWORK})
+endif (APPLE)
+
+if (DEFINED GMT_ENABLE_OPENMP)
+	set (GMT_OPENMP TRUE CACHE INTERNAL "Turn on GMT OpenMP")
+endif (DEFINED GMT_ENABLE_OPENMP)
+find_package (OpenMP)
+if (OPENMP_FOUND AND GMT_OPENMP)
+	set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
+	set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
+	set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${OpenMP_SHARED_LINKER_FLAGS}")
+	set (HAVE_OPENMP TRUE CACHE INTERNAL "OpenMP enabled." FORCE)
+	set (GMT_CONFIG_OPENMP_MESSAGE "enabled"
+		CACHE INTERNAL "OPENMP config message")
+	if (WIN32 AND OMP_DLL_LOC)
+		# UGLY AND RISKY PATCH FOR THE CPACK BUG OF NOT COPYING THE OMP DLL. THIS PATCH RELIES
+		# ON THE SETTING OF THE OMP_DLL_LOC VARIABLE IN ConfigUser.cmake. MINE HAS:
+		# set (OMP_DLL_LOC "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/redist/x64/Microsoft.VC120.OPENMP/vcomp120.dll")
+		install(FILES ${OMP_DLL_LOC} DESTINATION bin COMPONENT Libraries)
+	endif (WIN32 AND OMP_DLL_LOC)
+else (OPENMP_FOUND AND GMT_OPENMP)
+	set (HAVE_OPENMP FALSE CACHE INTERNAL "OpenMP disabled." FORCE)
+	set (GMT_CONFIG_OPENMP_MESSAGE "disabled"
+		CACHE INTERNAL "OPENMP config message")
+endif (OPENMP_FOUND AND GMT_OPENMP)
+if (OPENMP_FOUND AND NOT GMT_OPENMP)
+	message (STATUS "User variable GMT_OPENMP not set: disabling OpenMP.")
+	set (GMT_CONFIG_OPENMP_MESSAGE "disabled (GMT_OPENMP not set)"
+		CACHE INTERNAL "OPENMP config message")
+endif (OPENMP_FOUND AND NOT GMT_OPENMP)
+
+find_package(GLIB COMPONENTS gthread)
+if (GLIB_FOUND AND GMT_USE_THREADS)
+	set (HAVE_GLIB_GTHREAD TRUE CACHE INTERNAL "System has GLIB component gthread")
+	include_directories (${GLIB_INCLUDE_DIRS})
+	list (APPEND GMT_OPTIONAL_LIBRARIES ${GLIB_LIBRARIES})
+	set (GMT_CONFIG_GTHREAD_MESSAGE "enabled"
+		CACHE INTERNAL "GTHREAD config message")
+endif (GLIB_FOUND AND GMT_USE_THREADS)
+if (GLIB_FOUND AND NOT GMT_USE_THREADS)
+	set (HAVE_GLIB_GTHREAD FALSE CACHE INTERNAL "User disabled threads")
+	message (STATUS "User variable GMT_USE_THREADS not set: disabling GThread.")
+	set (GMT_CONFIG_GTHREAD_MESSAGE "disabled"
+		CACHE INTERNAL "GTHREAD config message")
+endif (GLIB_FOUND AND NOT GMT_USE_THREADS)
+if (GMT_USE_THREADS AND NOT GLIB_FOUND)
+	message (FATAL_ERROR "User variable GMT_USE_THREADS set but GLIB component gthread not found.")
+	set (GMT_CONFIG_GTHREAD_MESSAGE "unavailable"
+		CACHE INTERNAL "GTHREAD config message")
+endif (GMT_USE_THREADS AND NOT GLIB_FOUND)
+
+# check for math and POSIX functions
+include(ConfigureChecks)
+
+include_directories (${GMT_SOURCE_DIR}/src)
+include_directories (${CMAKE_CURRENT_BINARY_DIR})
+set(CMAKE_INCLUDE_CURRENT_DIR TRUE)
+
+# Examples and tests depend on Shorelines
+find_package (GSHHG)
+if (DO_EXAMPLES OR DO_TESTS AND NOT GSHHG_FOUND)
+	message (FATAL_ERROR "Cannot proceed without GSHHG Shorelines. "
+		"Need to either set GSHHG_ROOT or disable tests.")
+endif (DO_EXAMPLES OR DO_TESTS AND NOT GSHHG_FOUND)
+
+# Examples and tests depend on DCW
+find_package (DCW)
+if (DO_EXAMPLES OR DO_TESTS AND NOT DCW_FOUND)
+	message (FATAL_ERROR "Cannot proceed without DCW polygons. "
+		"Need to either set DCW_ROOT or disable tests."
+		"Obtain dcw-gmt-<version>.tar.gz or dcw-gmt-<version>.zip from ftp://ftp.soest.hawaii.edu/gmt and make DCW_ROOT variable point to the directory where you unarchived the files")
+endif (DO_EXAMPLES OR DO_TESTS AND NOT DCW_FOUND)
+
+if (DO_API_TESTS)
+	# These lines are temporarily here for the beta release - comment to avoid in the build
+	set (GMT_DEMOS_SRCS testapi.c testpsl.c testgmt.c testgmtshell.c testgmtio.c testgrdio.c testio.c
+		testapiconv.c example1.c testapi_matrix.c testapi_matrix_plot.c testapi_vector.c test_JL.c testapi_mixmatrix.c
+		test_walter.c testapi_usergrid.c testapi_userdataset.c testapi_uservectors.c)
+endif (DO_API_TESTS)
+
+if (NOT LICENSE_RESTRICTED) # off
+	# enable Shewchuk's triangle routine
+	set (GMT_TRIANGULATE "Shewchuk" PARENT_SCOPE)
+	set (GMT_TRIANGLE_SRCS triangle.c triangle.h)
+	list (APPEND GMT_EXTRA_LICENSE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/README.TRIANGLE)
+	set (GMT_EXTRA_LICENSE_FILES ${GMT_EXTRA_LICENSE_FILES} PARENT_SCOPE)
+else (NOT LICENSE_RESTRICTED) # on
+	# disable Shewchuk's triangle routine
+	set (GMT_TRIANGULATE "Watson" PARENT_SCOPE)
+endif (NOT LICENSE_RESTRICTED)
+
+# Note: Developers can set EXTRA_MODULES in ConfigUser.cmake to test new modules
+set (GMT_PROGS_SRCS blockmean.c blockmedian.c blockmode.c docs.c dimfilter.c filter1d.c grd2kml.c
+	fitcircle.c gmt2kml.c gmtconvert.c gmtlogo.c gmtmath.c gmtselect.c gmtsimplify.c
+	gmtspatial.c gmtconnect.c gmtregress.c gmtvector.c gmtwhich.c grd2cpt.c
+	grd2xyz.c grdblend.c grdclip.c grdcut.c grdedit.c grdfft.c grdfill.c grdfilter.c
+	grdgradient.c grdhisteq.c grdinfo.c grdlandmask.c grdmask.c grdmath.c
+	grdpaste.c grdproject.c grdsample.c grdconvert.c grdtrack.c movie.c
+	grdtrend.c grdvolume.c greenspline.c kml2gmt.c makecpt.c mapproject.c
+	gmtinfo.c nearneighbor.c project.c psconvert.c sample1d.c spectrum1d.c
+	sph2grd.c sphdistance.c sphinterpolate.c sphtriangulate.c splitxyz.c
+	surface.c trend1d.c trend2d.c triangulate.c xyz2grd.c gmtdefaults.c gmtget.c
+	gmtset.c grdcontour.c grdimage.c grdvector.c grdview.c psbasemap.c psclip.c
+	pscoast.c pscontour.c psevents.c pshistogram.c psimage.c psmask.c psrose.c psscale.c
+	pssolar.c psternary.c pstext.c pswiggle.c psxy.c psxyz.c pslegend.c ${EXTRA_MODULES})
+
+# Legacy modules for which to install compatibility links via
+# install_module_symlink
+set (GMT_COMPAT_MODULES minmax gmt2rgb gmtstitch gmtdp grdreformat ps2raster)
+
+# libpslib
+set (GMT_PSL_SRCS postscriptlight.c declspec.h psl_config.h PSL_Standard+.h
+	PSL_Standard.h PSL_ISOLatin1+.h PSL_ISOLatin1.h PSL_ISO-8859-1.h
+	PSL_ISO-8859-2.h PSL_ISO-8859-3.h PSL_ISO-8859-4.h PSL_ISO-8859-5.h
+	PSL_ISO-8859-6.h PSL_ISO-8859-7.h PSL_ISO-8859-8.h PSL_ISO-8859-9.h
+	PSL_ISO-8859-10.h PSL_ISO-8859-13.h PSL_ISO-8859-14.h PSL_ISO-8859-15.h
+	PSL_strings.h PSL_patterns.h)
+
+set (GMT_MBSYSTEM_SRCS gmt_mbsystem_module.c gmt_mbsystem_module.h)
+
+# libgmt
+set (GMT_LIB_SRCS block_subs.h common_byteswap.h common_math.h
+	common_runpath.h common_sighandler.c common_string.h clear.c begin.c
+	gmt_color_rgb.h gmt_colornames.h
+	gmt_modern.c end.c declspec.h gmt_hidden.h gmt_remote.h gmt_remote.c
+	figure.c gmt_dev.h gmt_common.h gmt_constants.h compat/qsort.h
+	gmt_contour.h gmt_customio.h gmt_datums.h gmt_dcw.h gmt_decorate.h gmt_defaults.h
+	gmt_ellipsoids.h gmt_error.h gmt_gdalread.h gmt_glib.h gmt_grd.h gmt_grdio.h gmt_hash.h
+	gmt_internals.h gmt_io.h gmt_macros.h gmt_media_name.h gmt_modern.h
+	gmt_media_size.h gmt_mgg_header2.h gmt_sharedlibs.h gmt_memory.h gmt_mb.h
+	gmt_core_module.h gmt_nan.h gmt_notposix.h gmt_pennames.h gmt_enum_dict.h
+	gmt_plot.h gmt_project.h gmt_prototypes.h gmt_psl.h gmt_shore.h gmt_gsformats.h
+	gmt_symbol.h gmt_synopsis.h gmt_texture.h gmt_time.h gmt_cpt_masters.h
+	gmt_types.h gmt_unique.h gmt_version.h gshhg_version.h postscriptlight.h
+	s_rint.h triangle.h gmt.h gmt_resources.h gmt_private.h subplot.c
+	gmt_error_codes.h gmt_api.c gmt_bcr.c gmt_calclock.c gmt_cdf.c gmt_compat.c
+	gmt_customio.c gmt_dcw.c gmt_error.c gmt_fft.c gmt_grdio.c gmt_io.c
+	gmt_memory.c gmt_nc.c gmt_notposix.c gmt_proj.c gmt_shore.c gmt_sph.c
+	gmt_stat.c gmt_support.c gmt_regexp.c gmt_vector.c gmt_parse.c inset.c
+	gmt_error_codes.c gshhg_version.c gmtread.c gmtwrite.c common_math.c
+	common_runpath.c common_sighandler.c common_string.c compat/qsort.c
+	gmt_sharedlibs.c gmt_core_module.c gmt_init.c gmt_map.c gmt_plot.c
+	kiss_fft/_kiss_fft_guts.h kiss_fft/kiss_fft.c kiss_fft/kiss_fft.h
+	kiss_fft/kiss_fftnd.c kiss_fft/kiss_fftnd.h
+	${GMT_TRIANGLE_SRCS} ${GMT_MBSYSTEM_SRCS})
+
+if (BUILD_SUPPLEMENTS)
+	# Needed in supplib, + supplements themselves
+	set (GMT_SUPPL_SRCS gmt_modern.c gmt_supplements_module.h gmt_supplements_module.c)
+endif (BUILD_SUPPLEMENTS)
+
+# dependencies on generated files
+set (GMT_GEN_HDRS gmt_keycases.h
+	gmt_keywords.h gmt_config.h
+	gmt_dimensions.h
+	CACHE INTERNAL "Autogenerated GMT headers")
+
+# Add commands to create header files
+
+add_custom_command (OUTPUT gmt_keycases.h gmt_keywords.h
+	COMMAND ${CMAKE_COMMAND}
+	-D GENERATE_COMMAND=gen_gmt_keywords_h
+	-D CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}
+	-D GMT_SRC=${GMT_SOURCE_DIR}
+	-P ${CMAKE_MODULE_PATH}/GmtGenExtraHeaders.cmake
+	DEPENDS gmt_keywords.txt gmt_keywords.d)
+
+add_custom_command (OUTPUT gmt_dimensions.h
+	COMMAND ${CMAKE_COMMAND}
+	-D GENERATE_COMMAND=gen_gmt_dimensions_h
+	-D CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}
+	-D GMT_SRC=${GMT_SOURCE_DIR}
+	-P ${CMAKE_MODULE_PATH}/GmtGenExtraHeaders.cmake
+	DEPENDS gmt_media_name.h gmt_pennames.h gmt_unique.h gmt_cpt_masters.h
+	gmt_keycases.h)
+	# depends on cached line numbers from these generated files:
+
+# autogenerated files target
+add_custom_target (gen_gmt_headers DEPENDS ${GMT_GEN_HDRS})
+
+# Configure header files to pass some of the CMake settings to the source code
+configure_file (gmt_config.h.in gmt_config.h)
+configure_file (psl_config.h.in psl_config.h)
+configure_file (gmt_version.h.in gmt_version.h)
+configure_file (isogmt.in isogmt${GMT_INSTALL_NAME_SUFFIX} @ONLY)
+configure_file (gmt-config.in gmt-config${GMT_INSTALL_NAME_SUFFIX} @ONLY)
+
+# gmtprogram
+set (GMT_PROGRAM ${GMT_SOURCE_DIR}/src/gmtprogram.c)
+
+# extra ugly definitions for triangle
+set_source_files_properties (triangle.c
+	PROPERTIES
+	COMPILE_DEFINITIONS "NO_TIMER;TRILIBRARY;REDUCED;CDT_ONLY;ANSI_DECLARATORS")
+
+# libpslib
+add_library (pslib
+	${GMT_GEN_HDRS}
+	${GMT_PSL_SRCS})
+
+add_dependencies (pslib gen_gmt_headers) # make pslib after gen_gmt_headers
+
+if (HAVE_M_LIBRARY)
+	# link the math library
+	target_link_libraries (pslib m)
+endif (HAVE_M_LIBRARY)
+
+if (HAVE_ZLIB)
+	# for DEFLATE encoding
+  target_link_libraries (pslib ${ZLIB_LIBRARIES})
+endif (HAVE_ZLIB)
+
+# set the build version (VERSION) and the API version (SOVERSION)
+set_target_properties (pslib
+	PROPERTIES
+	OUTPUT_NAME postscriptlight
+	PREFIX "${LIB_PREFIX}"
+	IMPORT_PREFIX "${LIB_PREFIX}"
+	VERSION ${GMT_LIB_VERSION}
+	SOVERSION ${GMT_LIB_SOVERSION}
+	DEFINE_SYMBOL "LIBRARY_EXPORTS")
+
+# If a renaming of the gmtpslpsl dll has been set in ConfigUser.cmake
+if (WIN32 AND PSL_DLL_RENAME)
+	set_target_properties (pslib PROPERTIES RUNTIME_OUTPUT_NAME ${PSL_DLL_RENAME})
+endif (WIN32 AND PSL_DLL_RENAME)
+
+if (BUILD_SUPPLEMENTS)
+	# supplement directories (only those, which are to be included in gmtlib)
+	# EXTRA_BUILD_DIRS are for testing new supplements that are not yet in
+	# subversion. See cmake/ConfigUserTemplate.cmake for setting this parameter.
+	set (GMT_SUPPL_DIRS geodesy gshhg img mgd77 potential segy seis
+		spotter x2sys ${EXTRA_BUILD_DIRS})
+endif (BUILD_SUPPLEMENTS)
+
+# path to all binary dirs (used to set PATH in test scripts)
+set (GMT_BINARY_DIR_PATH "${CMAKE_CURRENT_BINARY_DIR}/\${CMAKE_CONFIG_TYPE:-.}")
+
+if (BUILD_SUPPLEMENTS)
+	# process supplement directories
+	if (UNIX)
+		set (CMAKE_SHARED_MODULE_SUFFIX .so)
+	endif (UNIX)
+	foreach (_dir ${GMT_SUPPL_DIRS})
+		add_subdirectory (${_dir})
+		list (APPEND GMT_BINARY_DIR_PATH
+			"${CMAKE_CURRENT_BINARY_DIR}/${_dir}/\${CMAKE_CONFIG_TYPE:-.}")
+	endforeach (_dir)
+	# supplement library files
+	get_subdir_var_files (GMT_SUPPL_LIB_SRCS LIB_SRCS ${GMT_SUPPL_DIRS})
+
+	# include supplement directories
+	foreach (_dir ${GMT_SUPPL_DIRS})
+		include_directories (${CMAKE_CURRENT_BINARY_DIR}/${_dir})
+	endforeach (_dir)
+	# libgmtsuppl
+	if (WIN32)
+		add_library (supplib
+			${GMT_GEN_HDRS}
+			${GMT_SUPPL_SRCS}
+			${GMT_SUPPL_LIB_SRCS})
+	else (WIN32)
+		add_library (supplib MODULE
+			${GMT_GEN_HDRS}
+			${GMT_SUPPL_SRCS}
+			${GMT_SUPPL_LIB_SRCS})
+	endif (WIN32)
+
+	add_dependencies (supplib gen_gmt_headers) # make supplib after gen_gmt_headers
+	add_dependencies (supplib pslib) # make supplib after pslib
+	add_dependencies (supplib gmtlib) # make supplib after pslib
+
+	# No SOVERSION & VERSION for a MODULE, only for SHARED libs
+	target_link_libraries (supplib
+		gmtlib
+		pslib)
+
+	# Include any extra files that are listed in EXTRA_INCLUDE_GMTSUPPL defined in ConfigUser.cmake
+	# This include(s) will add new modules to the official GMT supplements
+	if (EXTRA_INCLUDE_GMTSUPPL)
+		foreach (_f ${EXTRA_INCLUDE_GMTSUPPL})
+			include (${_f})
+		endforeach(_f)
+	endif (EXTRA_INCLUDE_GMTSUPPL)
+
+	set_target_properties (supplib
+		PROPERTIES
+		OUTPUT_NAME supplements
+		RUNTIME_OUTPUT_NAME supplements
+		LIBRARY_OUTPUT_DIRECTORY plugins
+		RUNTIME_OUTPUT_DIRECTORY plugins
+		PREFIX ""
+		LINK_FLAGS "${USER_GMTLIB_LINK_FLAGS}"
+		DEFINE_SYMBOL "LIBRARY_EXPORTS")
+
+	if (WIN32 AND SUPP_DLL_RENAME)
+		set_target_properties (supplib PROPERTIES RUNTIME_OUTPUT_NAME ${SUPP_DLL_RENAME})
+	endif (WIN32 AND SUPP_DLL_RENAME)
+
+	if (HAVE_DLADDR AND HAVE_LIBDL)
+		# link the dynamic linking loader library
+		target_link_libraries (supplib dl)
+	endif (HAVE_DLADDR AND HAVE_LIBDL)
+
+	if (HAVE_M_LIBRARY)
+		# link the math library
+		target_link_libraries (supplib m)
+	endif (HAVE_M_LIBRARY)
+
+	# install target
+	install (TARGETS supplib
+		LIBRARY DESTINATION ${GMT_LIBDIR}/gmt${GMT_INSTALL_NAME_SUFFIX}/plugins # UNIX
+		COMPONENT Runtime
+		RUNTIME DESTINATION ${GMT_BINDIR}/gmt_plugins # Windows
+		COMPONENT Runtime)
+endif (BUILD_SUPPLEMENTS)
+
+# Include any extra files that are listed in EXTRA_INCLUDE_NEWSUPPL defined in ConfigUser.cmake
+# This include(s) will create new pluggins
+if (EXTRA_INCLUDE_NEWSUPPL)
+	foreach (_f ${EXTRA_INCLUDE_NEWSUPPL})
+		include (${_f})
+	endforeach(_f)
+endif (EXTRA_INCLUDE_NEWSUPPL)
+
+
+# make UNIX PATH variable
+string (REPLACE ";" ":" GMT_BINARY_DIR_PATH "${GMT_BINARY_DIR_PATH}")
+set (GMT_BINARY_DIR_PATH ${GMT_BINARY_DIR_PATH} CACHE INTERNAL
+	"UNIX PATH to all binary dirs")
+
+# libgmt
+add_library (gmtlib
+	${GMT_GEN_HDRS}
+	${GMT_LIB_SRCS}
+	${GMT_PROGS_SRCS})
+
+add_dependencies (gmtlib gen_gmt_headers) # make gmtlib after gen_gmt_headers
+add_dependencies (gmtlib pslib) # make gmtlib after pslib
+
+target_link_libraries (gmtlib
+	${NETCDF_LIBRARIES}
+	${GMT_OPTIONAL_LIBRARIES}
+	pslib)
+
+if (HAVE_M_LIBRARY)
+	# link the math library
+	target_link_libraries (gmtlib m)
+endif (HAVE_M_LIBRARY)
+
+# set the build version (VERSION) and the API version (SOVERSION)
+set_target_properties (gmtlib
+	PROPERTIES
+	OUTPUT_NAME gmt
+	PREFIX "${LIB_PREFIX}"
+	IMPORT_PREFIX "${LIB_PREFIX}"
+	VERSION ${GMT_LIB_VERSION}
+	SOVERSION ${GMT_LIB_SOVERSION}
+	LINK_FLAGS "${USER_GMTLIB_LINK_FLAGS}"
+	DEFINE_SYMBOL "LIBRARY_EXPORTS")
+
+# If a renaming of the gmt dll has been set in ConfigUser.cmake
+if (WIN32 AND GMT_DLL_RENAME)
+	set_target_properties (gmtlib PROPERTIES RUNTIME_OUTPUT_NAME ${GMT_DLL_RENAME})
+endif (WIN32 AND GMT_DLL_RENAME)
+
+if (HAVE_DLADDR AND HAVE_LIBDL)
+	# link the dynamic linking loader library
+	target_link_libraries (pslib dl)
+	target_link_libraries (gmtlib dl)
+endif (HAVE_DLADDR AND HAVE_LIBDL)
+
+if (MSVC AND FFTW3_FOUND)
+	target_link_libraries (gmtlib ws2_32)
+endif (MSVC AND FFTW3_FOUND)
+
+# build targets for standalone gmt target and demos
+string (REPLACE ".c" "" _gmt_progs "gmt.c;${GMT_DEMOS_SRCS}")
+foreach (_gmt_prog ${_gmt_progs})
+	add_executable (${_gmt_prog} ${_gmt_prog}.c)
+	target_link_libraries (${_gmt_prog} gmtlib)
+endforeach (_gmt_prog)
+
+add_executable (psldemo psldemo.h psldemo.c)
+target_link_libraries (psldemo pslib)
+
+# Rename gmt target to prevent version clash
+set_target_properties (gmt PROPERTIES OUTPUT_NAME gmt${GMT_INSTALL_NAME_SUFFIX})
+
+# generate and install Mac/Windows debugging symbols
+create_debug_sym (${GMT_BINDIR} gmt)
+if (WIN32)
+	create_debug_sym (${GMT_BINDIR} gmtlib pslib)
+	create_debug_sym (${GMT_BINDIR}/gmt_plugins supplib)
+else (WIN32)
+	create_debug_sym (${GMT_LIBDIR} gmtlib pslib)
+	create_debug_sym (${GMT_LIBDIR}/gmt${GMT_INSTALL_NAME_SUFFIX}/plugins supplib)
+endif (WIN32)
+
+# gshhg_version
+add_executable (gshhg_version gshhg_version.h gshhg_version.c)
+set_target_properties (gshhg_version
+	PROPERTIES COMPILE_DEFINITIONS "STANDALONE")
+target_link_libraries (gshhg_version ${NETCDF_LIBRARIES})
+
+# script2verbatim for removing svn keywords, comments etc. from example scripts
+add_executable (script2verbatim script2verbatim.c)
+
+if (BUILD_SUPPLEMENTS)
+	# Tests depend on GMT progs and supplements:
+	add_dependencies (check ${_gmt_progs} psldemo supplib)
+else (BUILD_SUPPLEMENTS)
+	# Tests depend on GMT progs and supplements:
+	add_dependencies (check ${_gmt_progs} psldemo)
+endif (BUILD_SUPPLEMENTS)
+
+if (MSVC)
+	# Disable automatic manifest generation
+	string(REGEX REPLACE "/MANIFEST[^ ]*( |$)" ""
+		CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
+	set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /MANIFEST:NO")
+
+	# To expand the command line arguments in Windows, see:
+	# http://msdn.microsoft.com/en-us/library/8bch7bkk.aspx
+	set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} setargv.obj")
+endif (MSVC)
+
+# add the install targets
+install (TARGETS gmtlib pslib gmt
+	ARCHIVE DESTINATION ${GMT_LIBDIR}
+	COMPONENT Runtime
+	LIBRARY DESTINATION ${GMT_LIBDIR}
+	COMPONENT Runtime
+	RUNTIME DESTINATION ${GMT_BINDIR}
+	COMPONENT Runtime)
+
+string (REPLACE ".c" "" _gmt_modules "${GMT_PROGS_SRCS}")
+install_module_symlink (${_gmt_modules} ${GMT_COMPAT_MODULES})
+
+# Install public headers
+install (FILES gmt.h gmt_resources.h declspec.h
+	DESTINATION ${GMT_INCLUDEDIR}
+	COMPONENT Runtime)
+
+if (BUILD_DEVELOPER)
+	# Install Developer headers [These are clean and have no #define HAVE_* configuration]
+	install (FILES postscriptlight.h common_math.h common_string.h gmt_common.h gmt_constants.h gmt_contour.h
+		gmt_dcw.h gmt_decorate.h gmt_defaults.h gmt_error.h gmt_error_codes.h gmt_fft.h gmt_gdalread.h gmt_grd.h
+		gmt_grdio.h gmt_hash.h gmt_io.h gmt_macros.h gmt_memory.h gmt_modern.h gmt_nan.h gmt_notposix.h gmt_plot.h
+		gmt_private.h gmt_project.h gmt_prototypes.h gmt_psl.h gmt_shore.h gmt_symbol.h gmt_synopsis.h
+		gmt_texture.h gmt_time.h gmt_types.h gmt_dev.h gmt_customio.h gmt_hidden.h gmt_mb.h
+		gmt_core_module.h gmt_supplements_module.h compat/qsort.h
+		DESTINATION ${GMT_INCLUDEDIR}
+		COMPONENT Runtime)
+	install (FILES compat/qsort.h
+		DESTINATION ${GMT_INCLUDEDIR}/compat
+		COMPONENT Runtime)
+	# Install Configured Developer headers [These are produced by cmake from *.h.in files]
+	install (FILES ${PROJECT_BINARY_DIR}/src/config.h ${PROJECT_BINARY_DIR}/src/gmt_config.h
+		${PROJECT_BINARY_DIR}/src/gmt_dimensions.h ${PROJECT_BINARY_DIR}/src/gmt_version.h
+		${PROJECT_BINARY_DIR}/src/psl_config.h
+		DESTINATION ${GMT_INCLUDEDIR}
+		COMPONENT Runtime)
+endif (BUILD_DEVELOPER)
+
+# symlink to gmt-wrapper in bindir and libdir:
+if (UNIX AND GMT_INSTALL_NAME_SUFFIX)
+	get_target_property(_gmt_wrapper_name gmt OUTPUT_NAME)
+	install (CODE "
+	execute_process (
+		COMMAND ${CMAKE_COMMAND} -E create_symlink
+		\"${_gmt_wrapper_name}\" \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${GMT_BINDIR}/gmt\")
+	")
+endif (UNIX AND GMT_INSTALL_NAME_SUFFIX)
+
+# install extra files
+install (PROGRAMS
+	${CMAKE_CURRENT_BINARY_DIR}/isogmt${GMT_INSTALL_NAME_SUFFIX}
+	${CMAKE_CURRENT_BINARY_DIR}/gmt-config${GMT_INSTALL_NAME_SUFFIX}
+	DESTINATION ${GMT_BINDIR}
+	COMPONENT Runtime)
+
+install (PROGRAMS gmtswitch
+	RENAME gmtswitch${GMT_INSTALL_NAME_SUFFIX}
+	DESTINATION ${GMT_BINDIR}
+	COMPONENT Runtime)
+
+install (PROGRAMS gmt_shell_functions.sh
+	RENAME gmt_shell_functions${GMT_INSTALL_NAME_SUFFIX}.sh
+	DESTINATION ${GMT_BINDIR}
+	COMPONENT Runtime)
+
+if (WIN32)
+	install (PROGRAMS
+		gmtswitch.bat
+		DESTINATION ${GMT_BINDIR}
+		COMPONENT Runtime)
+endif (WIN32)
+
+# this prints out the final version of the compiler/linker flags
+string (TOUPPER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_UPPER)
+string(REGEX REPLACE "[ ]+" " " _using_cflags ${CMAKE_C_FLAGS} " "
+	${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE_UPPER}})
+message (STATUS "Using CFLAGS = '${_using_cflags}'")
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh	(revision 27591)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-linux-static.sh	(revision 27592)
@@ -5,5 +5,5 @@
 ## Constants
 #
-VER="6.4.0"
+VER="6.0.0"
 
 # Find libgfortran and libgcc so we do not have to hardcode them
@@ -44,9 +44,8 @@
 
 # Copy custom configuration files
-cp ./configs/6/static/linux/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
-cp ./configs/6/static/cmake/modules/FindGDAL.cmake ./src/cmake/modules
-cp ./configs/6/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules
-cp ./configs/6/static/cmake/modules/FindNETCDF.cmake ./src/cmake/modules
-cp ./configs/6/static/src/CMakeLists.txt ./src/src
+cp ./configs/6.0/static/linux/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
+cp ./configs/6.0/static/cmake/modules/FindGDAL.cmake ./src/cmake/modules
+cp ./configs/6.0/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules
+cp ./configs/6.0/static/cmake/modules/FindNETCDF.cmake ./src/cmake/modules
 
 # Configure
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-linux.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-linux.sh	(revision 27591)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-linux.sh	(revision 27592)
@@ -5,5 +5,5 @@
 ## Constants
 #
-VER="6.4.0"
+VER="6.0.0"
 
 # Find libgfortran so that we do not have to hardcode it.
@@ -36,5 +36,5 @@
 
 # Copy custom configuration files
-cp ./configs/6/linux/cmake/ConfigUser.cmake ./src/cmake
+cp ./configs/6.0/linux/cmake/ConfigUser.cmake ./src/cmake
 
 # Configure
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 27591)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-mac-static.sh	(revision 27592)
@@ -5,5 +5,5 @@
 ## Constants
 #
-VER="6.4.0"
+VER="6.0.0"
 
 # Find libgfortran and libgcc so we do not have to hardcode them
@@ -45,8 +45,8 @@
 
 # Copy custom configuration files
-cp ./configs/6/static/mac/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
-cp ./configs/6/static/cmake/modules/FindGDAL.cmake ./src/cmake/modules
-cp ./configs/6/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules
-cp ./configs/6/static/cmake/modules/FindNETCDF.cmake ./src/cmake/modules
+cp ./configs/6.0/static/mac/cmake/ConfigUser.static.cmake ./src/cmake/ConfigUser.cmake
+cp ./configs/6.0/static/cmake/modules/FindGDAL.cmake ./src/cmake/modules
+cp ./configs/6.0/static/cmake/modules/FindGSHHG.cmake ./src/cmake/modules
+cp ./configs/6.0/static/cmake/modules/FindNETCDF.cmake ./src/cmake/modules
 
 # Configure
Index: /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh	(revision 27591)
+++ /issm/trunk-jpl/externalpackages/gmt/install-6-mac.sh	(revision 27592)
@@ -5,5 +5,5 @@
 ## Constants
 #
-VER="6.4.0"
+VER="6.0.0"
 
 # Find libgfortran so that we do not have to hardcode it.
@@ -36,5 +36,5 @@
 
 # Copy custom configuration files
-cp ./configs/6/mac/cmake/ConfigUser.cmake ./src/cmake
+cp ./configs/6.0/mac/cmake/ConfigUser.cmake ./src/cmake
 
 # Configure
