Skip to content
Commits on Source (6)
#
# $Id: CMakeLists.txt 19521 2017-12-27 22:38:24Z pwessel $
# $Id$
#
# Copyright (c) 1991-2018 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe
# Copyright (c) 1991-2019 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe
# See LICENSE.TXT file for copying and redistribution conditions.
#
# This program is free software; you can redistribute it and/or modify
......@@ -76,8 +76,9 @@ include (ConfigCMake)
# Find UNIX commands
include (FindUnixCommands)
find_program (SVN svn)
find_program (GIT git)
find_program (GS gs gswin64)
find_program (XZ NAMES xz)
# Global test target
add_custom_target (check
......@@ -102,42 +103,34 @@ endif (EXISTS ${GMT_SOURCE_DIR}/test/)
add_subdirectory (cmake/dist) # make distribution bundles (always last)
# Source release target
if (SVN AND HAVE_SVN_VERSION)
if (GIT AND HAVE_SVN_VERSION)
# Export svn working tree
add_custom_target (svn_export_release
COMMAND ${SVN} --force export
${GMT_SOURCE_DIR} ${GMT_RELEASE_PREFIX})
# Remove the test dir, so that it is not included in the final release tarball
add_custom_target (svn_prune_test_dir
COMMAND ${CMAKE_COMMAND} -E remove_directory ${GMT_RELEASE_PREFIX}/test)
add_depend_to_target (svn_prune_test_dir svn_export_release)
add_depend_to_target (gmt_release svn_prune_test_dir)
find_program (GNUTAR NAMES gnutar gtar tar)
find_program (XZ NAMES xz)
if (GNUTAR AND GZIP AND XZ)
#add_custom_target (git_export_release_tar
# COMMAND ${GIT} archive --prefix=gmt-${GMT_PACKAGE_VERSION}/ -o ${GMT_RELEASE_PREFIX}.tar 5.4
# WORKING_DIRECTORY ..)
if (GZIP AND XZ)
# Targets for creating tarballs
string (REGEX REPLACE ".*/" "" _release_dirname "${GMT_RELEASE_PREFIX}")
add_custom_command (OUTPUT ${_release_dirname}-src.tar
COMMAND ${GNUTAR} -c --owner 0 --group 0 --mode a=rX,u=rwX
-f ${GMT_BINARY_DIR}/${_release_dirname}-src.tar ${_release_dirname}
DEPENDS ${GMT_RELEASE_PREFIX}
WORKING_DIRECTORY ${GMT_RELEASE_PREFIX}/..
COMMAND ${GIT} archive --prefix=gmt-${GMT_PACKAGE_VERSION}/ -o ${GMT_RELEASE_PREFIX}-src.tar 5.4
WORKING_DIRECTORY ..
VERBATIM)
add_custom_command (OUTPUT ${_release_dirname}-src.tar.gz
COMMAND ${GZIP} -9 --keep --force ${GMT_BINARY_DIR}/${_release_dirname}-src.tar
DEPENDS ${GMT_RELEASE_PREFIX} ${_release_dirname}-src.tar
DEPENDS ${_release_dirname}-src.tar
WORKING_DIRECTORY ${GMT_RELEASE_PREFIX}/..
VERBATIM)
add_custom_command (OUTPUT ${_release_dirname}-src.tar.xz
COMMAND ${XZ} -9 --keep --force ${GMT_BINARY_DIR}/${_release_dirname}-src.tar
DEPENDS ${GMT_RELEASE_PREFIX} ${_release_dirname}-src.tar
DEPENDS ${_release_dirname}-src.tar
WORKING_DIRECTORY ${GMT_RELEASE_PREFIX}/..
VERBATIM)
add_custom_target (gmt_release_tar
DEPENDS ${GMT_RELEASE_PREFIX}
DEPENDS ${_release_dirname}-src.tar
${_release_dirname}-src.tar.gz ${_release_dirname}-src.tar.xz)
endif (GNUTAR AND GZIP AND XZ)
endif (SVN AND HAVE_SVN_VERSION)
add_depend_to_target (gmt_release gmt_release_tar)
endif (GZIP AND XZ)
endif (GIT AND HAVE_SVN_VERSION)
get_target_property (_location gmtlib LOCATION)
get_filename_component (GMT_CORE_LIB_NAME ${_location} NAME)
......
$LastChangedDate: 2014-02-13 10:29:14 -1000 (Thu, 13 Feb 2014) $
$Revision: 12892 $
$LastChangedDate$
$Revision$
As of GMT 5.0.0, GMT is distributed under the GNU Lesser General Public
License (LGPL) version 3 or later. Copies of the The GNU General Public
......
$Id: README 19731 2018-02-08 10:49:07Z remko $
$Id$
== Information for installing GMT 5 ==
......
////
$Id: README.CMake 19731 2018-02-08 10:49:07Z remko $
$Id$
Copyright (c) 1991-2018 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis
Copyright (c) 1991-2019 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis
and F. Wobbe. See LICENSE.TXT file for copying and redistribution conditions.
Contact info: http://gmt.soest.hawaii.edu/
......
#
# $Id: ConfigDefault.cmake 20314 2018-06-28 02:11:28Z pwessel $
# $Id$
#
# Copyright (c) 1991-2018 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
# Copyright (c) 1991-2019 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
# See LICENSE.TXT file for copying and redistribution conditions.
#
# This program is free software; you can redistribute it and/or modify
......@@ -37,19 +37,19 @@ set (GMT_PACKAGE_DESCRIPTION_SUMMARY "The Generic Mapping Tools")
# GMT_VERSION_YEAR is set to current date in
# cmake/modules/ConfigCMake.cmake if not specified here:
set (GMT_VERSION_YEAR "2018")
set (GMT_VERSION_YEAR "2019")
# The GMT package version.
set (GMT_PACKAGE_VERSION_MAJOR 5)
set (GMT_PACKAGE_VERSION_MINOR 4)
set (GMT_PACKAGE_VERSION_PATCH 4)
set (GMT_PACKAGE_VERSION_PATCH 5)
# The subversion revision of the GMT source code.
# This is manually set when making GMT *public* releases.
# However, when making internal releases or just an ordinary developer build, leave it
# empty; if it is empty, the revision number is automatically populated for you on build.
set (GMT_SOURCE_CODE_CONTROL_VERSION_STRING "20314")
#set (GMT_SOURCE_CODE_CONTROL_VERSION_STRING "")
#set (GMT_SOURCE_CODE_CONTROL_VERSION_STRING "20314")
set (GMT_SOURCE_CODE_CONTROL_VERSION_STRING "")
# The GMT package version.
set (GMT_PACKAGE_VERSION "${GMT_PACKAGE_VERSION_MAJOR}.${GMT_PACKAGE_VERSION_MINOR}.${GMT_PACKAGE_VERSION_PATCH}")
......@@ -121,7 +121,7 @@ set (GMT_COPYRIGHT_STRING)
set (GMT_COPYRIGHT_STRING "${GMT_COPYRIGHT_STRING}Copyright 1991-${GMT_VERSION_YEAR} Paul Wessel, Walter H. F. Smith, R. Scharroo, J. Luis and F. Wobbe\\n")
set (GMT_COPYRIGHT_STRING "${GMT_COPYRIGHT_STRING}This program comes with NO WARRANTY, to the extent permitted by law.\\n")
set (GMT_COPYRIGHT_STRING "${GMT_COPYRIGHT_STRING}You may redistribute copies of this program under the terms of the\\n")
set (GMT_COPYRIGHT_STRING "${GMT_COPYRIGHT_STRING}GNU General Public License.\\n")
set (GMT_COPYRIGHT_STRING "${GMT_COPYRIGHT_STRING}GNU Lesser General Public License.\\n")
set (GMT_COPYRIGHT_STRING "${GMT_COPYRIGHT_STRING}For more information about these matters, see the file named LICENSE.TXT.\\n")
set (GMT_COPYRIGHT_STRING "${GMT_COPYRIGHT_STRING}\\n")
......
#
# $Id: ConfigUserTemplate.cmake 19731 2018-02-08 10:49:07Z remko $
# $Id$
#
# Copyright (c) 1991-2018 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
# Copyright (c) 1991-2019 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
# See LICENSE.TXT file for copying and redistribution conditions.
#
# This program is free software; you can redistribute it and/or modify it
......@@ -138,6 +138,9 @@
# Set location of ZLIB (can be root directory or path to header file) [auto]:
#set (ZLIB_ROOT "zlib_install_prefix")
# 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)
......
#
# $Id: CMakeLists.txt 19651 2018-01-23 00:09:28Z jluis $
# $Id$
#
# Copyright (c) 1991-2018 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe
# Copyright (c) 1991-2019 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe
# See LICENSE.TXT file for copying and redistribution conditions.
#
# This program is free software; you can redistribute it and/or modify
......@@ -94,6 +94,7 @@ set (CPACK_INSTALL_TYPE_FULL_DISPLAY_NAME "Everything")
set (CPACK_COMPONENT_RUNTIME_INSTALL_TYPES Minimal Full)
set (CPACK_COMPONENT_DOCUMENTATION_INSTALL_TYPES Full)
set (CPACK_COMPONENT_GSHHG_INSTALL_TYPES Full)
set (CPACK_COMPONENT_DCW_INSTALL_TYPES Full)
# One package per COMPONENT:
set(CPACK_COMPONENTS_GROUPING "IGNORE")
......@@ -170,11 +171,11 @@ if (WIN32 AND NOT CYGWIN)
if (WIN32 AND TRUE)
# Install the gmtmex on Windows. Need to make this work via variables in ConfigUser.cmake
if (BITAGE EQUAL 64)
install (PROGRAMS "C:/progs_cygw/GMTdev/gmt-mex/branches/5.4/src/gmtmex.mexw64" DESTINATION ${GMT_BINDIR} COMPONENT Runtime)
install (PROGRAMS ${GMTMEX_PATH}/gmtmex.mexw64 DESTINATION ${GMT_BINDIR} COMPONENT Runtime)
else ()
install (PROGRAMS "C:/progs_cygw/GMTdev/gmt-mex/branches/5.4/src/gmtmex.mexw32" DESTINATION ${GMT_BINDIR} COMPONENT Runtime)
install (PROGRAMS ${GMTMEX_PATH}/gmtmex.mexw32 DESTINATION ${GMT_BINDIR} COMPONENT Runtime)
endif ()
install (PROGRAMS "C:/progs_cygw/GMTdev/gmt-mex/branches/5.4/src/gmt.m" DESTINATION ${GMT_BINDIR} COMPONENT Runtime)
install (PROGRAMS ${GMTMEX_PATH}/../../src/gmt.m DESTINATION ${GMT_BINDIR} COMPONENT Runtime)
endif (WIN32 AND TRUE)
# Fix bundle:
......
#
# $Id: CheckPrototypeExists.cmake 13727 2014-11-20 17:11:17Z fwobbe $
# $Id$
#
# - Check if the prototype for a function exists.
# CHECK_PROTOTYPE_EXISTS (FUNCTION HEADER VARIABLE)
......
#
# $Id: CheckTypeExists.cmake 12822 2014-01-31 23:39:56Z remko $
# $Id$
#
# - Check if the given struct or class has the specified member variable
# CHECK_STRUCT_MEMBER (STRUCT MEMBER HEADER VARIABLE)
......
#
# $Id: ConfigCMake.cmake 16437 2016-05-15 20:02:52Z pwessel $
# $Id$
#
# Useful CMake variables.
#
......
#
# $Id: ConfigureChecks.cmake 18344 2017-06-08 21:51:52Z pwessel $
# $Id$
#
if(NOT DEFINED _INCLUDED_CHECK_MACROS_)
......
#
# $Id: CopyDirIfDifferent.cmake 19521 2017-12-27 22:38:24Z pwessel $
# $Id$
#
# Copyright (c) 1991-2018 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
# Copyright (c) 1991-2019 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
# See LICENSE.TXT file for copying and redistribution conditions.
#
# This program is free software; you can redistribute it and/or modify
......
#
# $Id: CreateDebugSym.cmake 19521 2017-12-27 22:38:24Z pwessel $
# $Id$
#
# - Generates Mac .dSYM bundle
# CREATE_DEBUG_SYM ( DESTINATION TARGETS )
......@@ -7,7 +7,7 @@
# DESTINATION - destination directory for installed targets
# TARGETS - list of targets
#
# Copyright (c) 1991-2018 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
# Copyright (c) 1991-2019 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
# See LICENSE.TXT file for copying and redistribution conditions.
#
# This program is free software; you can redistribute it and/or modify
......
#
# $Id: FindDCW.cmake 14889 2015-09-19 13:12:39Z remko $
# $Id$
#
# Locate DCW Digital Chart of the World for GMT
#
......
#
# $Id: FindFFTW3.cmake 14889 2015-09-19 13:12:39Z remko $
# $Id$
#
# Locate fftw3
#
......
#
# $Id: FindGDAL.cmake 18235 2017-05-23 18:32:26Z remko $
# $Id$
#
# Locate gdal
#
......
#
# $Id: FindGLIB.cmake 16156 2016-04-08 11:10:23Z remko $
# $Id$
#
# - Try to find Glib and its components (gio, gobject etc)
# Once done, this will define
......
#
# $Id: FindGSHHG.cmake 14889 2015-09-19 13:12:39Z remko $
# $Id$
#
# Locate GSHHG shorelines
#
......
#
# $Id: FindNETCDF.cmake 14889 2015-09-19 13:12:39Z remko $
# $Id$
#
# Locate netcdf
#
......
#
# $Id: FindPCRE.cmake 14889 2015-09-19 13:12:39Z remko $
# $Id$
#
# Locate pcre
#
......