[24684] | 1 | Index: ../trunk-jpl/externalpackages/gmt/configs/linux/5.1/cmake/ConfigUser.cmake
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/externalpackages/gmt/configs/linux/5.1/cmake/ConfigUser.cmake (revision 24454)
|
---|
| 4 | +++ ../trunk-jpl/externalpackages/gmt/configs/linux/5.1/cmake/ConfigUser.cmake (nonexistent)
|
---|
| 5 | @@ -1,240 +0,0 @@
|
---|
| 6 | -#
|
---|
| 7 | -# $Id: ConfigUserTemplate.cmake 12904 2014-02-17 20:52:35Z fwobbe $
|
---|
| 8 | -#
|
---|
| 9 | -# Copyright (c) 1991-2014 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
|
---|
| 10 | -# See LICENSE.TXT file for copying and redistribution conditions.
|
---|
| 11 | -#
|
---|
| 12 | -# This program is free software; you can redistribute it and/or modify it
|
---|
| 13 | -# under the terms of the GNU Lesser General Public License as published by the
|
---|
| 14 | -# Free Software Foundation; version 3 or any later version.
|
---|
| 15 | -#
|
---|
| 16 | -# This program is distributed in the hope that it will be useful, but WITHOUT
|
---|
| 17 | -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
---|
| 18 | -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
---|
| 19 | -# for more details.
|
---|
| 20 | -#
|
---|
| 21 | -# Contact info: gmt.soest.hawaii.edu
|
---|
| 22 | -# ----------------------------------------------------------------------------
|
---|
| 23 | -
|
---|
| 24 | -# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
|
---|
| 25 | -# basis. First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
|
---|
| 26 | -# edit 'ConfigUser.cmake'. 'ConfigUser.cmake' is not version controlled
|
---|
| 27 | -# (currently listed in svn:ignore property)
|
---|
| 28 | -#
|
---|
| 29 | -# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
|
---|
| 30 | -# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
|
---|
| 31 | -# "False", "off", "no", and "something-NotFound" are all false). Other values
|
---|
| 32 | -# are true. Thus it does not matter whether you use TRUE and FALSE, ON and
|
---|
| 33 | -# OFF, or YES and NO for your booleans.
|
---|
| 34 | -
|
---|
| 35 | -##
|
---|
| 36 | -## Section 1: Installation paths
|
---|
| 37 | -##
|
---|
| 38 | -
|
---|
| 39 | -# ============================================================================
|
---|
| 40 | -# Basic setup begins here. All settings are optional. In most cases, setting
|
---|
| 41 | -# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
|
---|
| 42 | -# reasonable defaults enabled.
|
---|
| 43 | -# ============================================================================
|
---|
| 44 | -
|
---|
| 45 | -# Installation path (usually defaults to /usr/local) [auto]:
|
---|
| 46 | -set (CMAKE_INSTALL_PREFIX "$ENV{ISSM_DIR}/externalpackages/gmt/install")
|
---|
| 47 | -
|
---|
| 48 | -# Set install name suffix used for directories and gmt executables
|
---|
| 49 | -# [undefined]:
|
---|
| 50 | -#set (GMT_INSTALL_NAME_SUFFIX "suffix")
|
---|
| 51 | -
|
---|
| 52 | -# Install into traditional directory structure. Disable to install a
|
---|
| 53 | -# distribution type directory structure (doc and share separated) [on]:
|
---|
| 54 | -#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
|
---|
| 55 | -
|
---|
| 56 | -# Install convenience links for GMT modules. Disable to install only the main
|
---|
| 57 | -# gmt program and access modules as "gmt modulename options" [TRUE]:
|
---|
| 58 | -#set (GMT_INSTALL_MODULE_LINKS FALSE)
|
---|
| 59 | -
|
---|
| 60 | -# Make executables relocatable on supported platforms (relative RPATH) [TRUE]:
|
---|
| 61 | -#set (GMT_INSTALL_RELOCATABLE FALSE)
|
---|
| 62 | -
|
---|
| 63 | -# ============================================================================
|
---|
| 64 | -# Advanced configuration begins here. Usually it is not necessary to edit any
|
---|
| 65 | -# settings below. You should know what you are doing if you do though. Note:
|
---|
| 66 | -# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
|
---|
| 67 | -# path is given.
|
---|
| 68 | -# ============================================================================
|
---|
| 69 | -
|
---|
| 70 | -# Set binary installation path [bin]:
|
---|
| 71 | -#set (GMT_BINDIR "bin")
|
---|
| 72 | -
|
---|
| 73 | -# Set library installation path [lib or lib64]:
|
---|
| 74 | -#set (GMT_LIBDIR "lib")
|
---|
| 75 | -
|
---|
| 76 | -# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 77 | -#set (GMT_INCLUDEDIR "include/gmt")
|
---|
| 78 | -
|
---|
| 79 | -# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 80 | -#set (GMT_DATADIR "share/gmt")
|
---|
| 81 | -
|
---|
| 82 | -# Set doc installation path [share/doc or
|
---|
| 83 | -# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 84 | -#set (GMT_DOCDIR "share/doc/gmt")
|
---|
| 85 | -
|
---|
| 86 | -# Set manpage installation path [share/man or
|
---|
| 87 | -# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
|
---|
| 88 | -#set (GMT_MANDIR "share/doc/gmt/man")
|
---|
| 89 | -
|
---|
| 90 | -# Install documentation files from this external location instead of creating
|
---|
| 91 | -# new PDF and HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
|
---|
| 92 | -#set (GMT_INSTALL_EXTERNAL_DOC OFF)
|
---|
| 93 | -
|
---|
| 94 | -# Install manual pages from this external location instead of creating the
|
---|
| 95 | -# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
|
---|
| 96 | -#set (GMT_INSTALL_EXTERNAL_MAN OFF)
|
---|
| 97 | -
|
---|
| 98 | -##
|
---|
| 99 | -## Section 2: Build dependencies (should only be needed if CMake cannot
|
---|
| 100 | -## automatically detect the rights version or path.)
|
---|
| 101 | -##
|
---|
| 102 | -
|
---|
| 103 | -# Set path to GSHHG Shoreline Database [auto]:
|
---|
| 104 | -set (GSHHG_ROOT "$ENV{ISSM_DIR}/externalpackages/gshhg/install")
|
---|
| 105 | -
|
---|
| 106 | -# Copy GSHHG files to $/coast [FALSE]:
|
---|
| 107 | -#set (COPY_GSHHG TRUE)
|
---|
| 108 | -
|
---|
| 109 | -# Set path to DCW Digital Chart of the World for GMT [auto]:
|
---|
| 110 | -#set (DCW_ROOT "dcw-gmt_path")
|
---|
| 111 | -
|
---|
| 112 | -# Copy DCW files to $/dcw [FALSE]:
|
---|
| 113 | -#set (COPY_DCW TRUE)
|
---|
| 114 | -
|
---|
| 115 | -# Set location of NetCDF (can be root directory, path to header file or path
|
---|
| 116 | -# to nc-config) [auto]:
|
---|
| 117 | -set (NETCDF_ROOT "$ENV{ISSM_DIR}/externalpackages/netcdf/install")
|
---|
| 118 | -
|
---|
| 119 | -# Set location of GDAL (can be root directory, path to header file or path to
|
---|
| 120 | -# gdal-config) [auto]:
|
---|
| 121 | -set (GDAL_ROOT "$ENV{ISSM_DIR}/externalpackages/gdal/install")
|
---|
| 122 | -
|
---|
| 123 | -# Set location of PCRE (can be root directory, path to header file or path to
|
---|
| 124 | -# pcre-config) [auto]:
|
---|
| 125 | -#set (PCRE_ROOT "pcre_install_prefix")
|
---|
| 126 | -
|
---|
| 127 | -# Set location of single precision FFTW (can be root directory or path to
|
---|
| 128 | -# header file) [auto]:
|
---|
| 129 | -#set (FFTW3_ROOT "fftw_install_prefix")
|
---|
| 130 | -
|
---|
| 131 | -# Set location of ZLIB (can be root directory or path to header file) [auto]:
|
---|
| 132 | -set (ZLIB_ROOT "$ENV{ISSM_DIR}/externalpackages/zlib/install")
|
---|
| 133 | -
|
---|
| 134 | -##
|
---|
| 135 | -## Section 3: GMT features
|
---|
| 136 | -##
|
---|
| 137 | -
|
---|
| 138 | -# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
|
---|
| 139 | -# redistributed under the terms of the GPL or LGPL such as Shewchuk's
|
---|
| 140 | -# triangulation (valid values are GPL, LGPL and off) [off]:
|
---|
| 141 | -#set (LICENSE_RESTRICTED GPL)
|
---|
| 142 | -
|
---|
| 143 | -# Configure default units (possible values are SI and US) [SI]:
|
---|
| 144 | -#set (UNITS "US")
|
---|
| 145 | -
|
---|
| 146 | -# Enable building of shared libraries [TRUE] (disable to use static libraries;
|
---|
| 147 | -# not recommended):
|
---|
| 148 | -#set (BUILD_SHARED_LIBS FALSE)
|
---|
| 149 | -
|
---|
| 150 | -# Build GMT shared lib with supplemental modules [TRUE]:
|
---|
| 151 | -#set (BUILD_SUPPLEMENTS FALSE)
|
---|
| 152 | -
|
---|
| 153 | -##
|
---|
| 154 | -## Section 4: Advanced tweaking
|
---|
| 155 | -##
|
---|
| 156 | -
|
---|
| 157 | -#
|
---|
| 158 | -# Testing and development
|
---|
| 159 | -#
|
---|
| 160 | -
|
---|
| 161 | -# Enable running examples/tests with "ctest" or "make check" (out-of-source).
|
---|
| 162 | -# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
|
---|
| 163 | -# line.
|
---|
| 164 | -#enable_testing()
|
---|
| 165 | -#set (DO_EXAMPLES TRUE)
|
---|
| 166 | -#set (DO_TESTS TRUE)
|
---|
| 167 | -# Number of parallel test jobs with "make check":
|
---|
| 168 | -#set (N_TEST_JOBS 4)
|
---|
| 169 | -
|
---|
| 170 | -# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
|
---|
| 171 | -# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
|
---|
| 172 | -# for testing [OFF]:
|
---|
| 173 | -#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
|
---|
| 174 | -
|
---|
| 175 | -# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
|
---|
| 176 | -# that link against the full gmt libs (not just the API; for building codes
|
---|
| 177 | -# that only need the GMT API, see the gmtextension project).
|
---|
| 178 | -#set (EXTRA_BUILD_DIRS apidemo)
|
---|
| 179 | -
|
---|
| 180 | -# Directory in which to install the release sources per default
|
---|
| 181 | -# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
|
---|
| 182 | -#set (GMT_RELEASE_PREFIX "release-src-prefix")
|
---|
| 183 | -
|
---|
| 184 | -# If set to false, image conversion from PS images to PNG and PDF does
|
---|
| 185 | -# not depend on the gmt binary target. Note: "make gmt" is then required
|
---|
| 186 | -# before docs_depends [TRUE].
|
---|
| 187 | -#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
|
---|
| 188 | -
|
---|
| 189 | -#
|
---|
| 190 | -# Debugging
|
---|
| 191 | -#
|
---|
| 192 | -
|
---|
| 193 | -# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
|
---|
| 194 | -# [Release]:
|
---|
| 195 | -#set (CMAKE_BUILD_TYPE Debug)
|
---|
| 196 | -
|
---|
| 197 | -# Extra debugging for developers:
|
---|
| 198 | -#add_definitions(-DDEBUG)
|
---|
| 199 | -#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
|
---|
| 200 | -#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
|
---|
| 201 | -#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") # extra warnings
|
---|
| 202 | -#set (CMAKE_C_FLAGS_DEBUG -ggdb3) # gdb debugging symbols
|
---|
| 203 | -#set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized") # check uninitialized variables
|
---|
| 204 | -#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE) # debug link dependencies
|
---|
| 205 | -
|
---|
| 206 | -#
|
---|
| 207 | -# System specific tweaks
|
---|
| 208 | -#
|
---|
| 209 | -
|
---|
| 210 | -# This is for GCC on Solaris to avoid "relocations remain against allocatable
|
---|
| 211 | -# but non-writable sections" problems:
|
---|
| 212 | -#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
|
---|
| 213 | -
|
---|
| 214 | -# This may be needed to enable strdup and extended math functions with GCC and
|
---|
| 215 | -# Suncc on Solaris:
|
---|
| 216 | -#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
|
---|
| 217 | -
|
---|
| 218 | -# Do not warn when building with Windows SDK or Visual Studio Express:
|
---|
| 219 | -#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
|
---|
| 220 | -
|
---|
| 221 | -# Manually select runtime library when compiling with Windows SDK or Visual
|
---|
| 222 | -# Studio Express:
|
---|
| 223 | -#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
|
---|
| 224 | -
|
---|
| 225 | -# If your NetCDF library is static (not recommended, applies to Windows only)
|
---|
| 226 | -#set (NETCDF_STATIC TRUE)
|
---|
| 227 | -
|
---|
| 228 | -# If want to rename the DLLs to something else than the default (e.g. to
|
---|
| 229 | -# append the bitness - Windows only)
|
---|
| 230 | -#if (WIN32)
|
---|
| 231 | -# set (BITAGE 32)
|
---|
| 232 | -# # Detect if we are building a 32 or 64 bits version
|
---|
| 233 | -# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
---|
| 234 | -# set (BITAGE 64)
|
---|
| 235 | -# endif ()
|
---|
| 236 | -# set (GMT_DLL_RENAME gmt_w${BITAGE})
|
---|
| 237 | -# set (PSL_DLL_RENAME psl_w${BITAGE})
|
---|
| 238 | -#endif(WIN32)
|
---|
| 239 | -
|
---|
| 240 | -# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
|
---|
| 241 | -#if(MSVC11)
|
---|
| 242 | -# add_definitions(/D_ALLOW_KEYWORD_MACROS)
|
---|
| 243 | -#endif(MSVC11)
|
---|
| 244 | -
|
---|
| 245 | -# vim: textwidth=78 noexpandtab tabstop=2 softtabstop=2 shiftwidth=2
|
---|
| 246 | Index: ../trunk-jpl/externalpackages/gmt/configs/linux/6.0/cmake/ConfigUser.cmake
|
---|
| 247 | ===================================================================
|
---|
| 248 | --- ../trunk-jpl/externalpackages/gmt/configs/linux/6.0/cmake/ConfigUser.cmake (revision 24454)
|
---|
| 249 | +++ ../trunk-jpl/externalpackages/gmt/configs/linux/6.0/cmake/ConfigUser.cmake (nonexistent)
|
---|
| 250 | @@ -1,308 +0,0 @@
|
---|
| 251 | -#
|
---|
| 252 | -#
|
---|
| 253 | -# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
|
---|
| 254 | -# See LICENSE.TXT file for copying and redistribution conditions.
|
---|
| 255 | -#
|
---|
| 256 | -# This program is free software; you can redistribute it and/or modify it
|
---|
| 257 | -# under the terms of the GNU Lesser General Public License as published by the
|
---|
| 258 | -# Free Software Foundation; version 3 or any later version.
|
---|
| 259 | -#
|
---|
| 260 | -# This program is distributed in the hope that it will be useful, but WITHOUT
|
---|
| 261 | -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
---|
| 262 | -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
---|
| 263 | -# for more details.
|
---|
| 264 | -#
|
---|
| 265 | -# Contact info: www.generic-mapping-tools.org
|
---|
| 266 | -# ----------------------------------------------------------------------------
|
---|
| 267 | -
|
---|
| 268 | -# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
|
---|
| 269 | -# basis. First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
|
---|
| 270 | -# edit 'ConfigUser.cmake'. 'ConfigUser.cmake' is not version controlled
|
---|
| 271 | -# (currently listed in .gitignore).
|
---|
| 272 | -#
|
---|
| 273 | -# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
|
---|
| 274 | -# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
|
---|
| 275 | -# "False", "off", "no", and "something-NotFound" are all false). Other values
|
---|
| 276 | -# are true. Thus it does not matter whether you use TRUE and FALSE, ON and
|
---|
| 277 | -# OFF, or YES and NO for your booleans.
|
---|
| 278 | -
|
---|
| 279 | -##
|
---|
| 280 | -## Section 1: Installation paths
|
---|
| 281 | -##
|
---|
| 282 | -
|
---|
| 283 | -# ============================================================================
|
---|
| 284 | -# Basic setup begins here. All settings are optional. In most cases, setting
|
---|
| 285 | -# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
|
---|
| 286 | -# reasonable defaults enabled. Note: If you need to specify directory names
|
---|
| 287 | -# with spaces (e.g., on Windows) then you must put them in quotes.
|
---|
| 288 | -# ============================================================================
|
---|
| 289 | -
|
---|
| 290 | -# Installation path (usually defaults to /usr/local) [auto]:
|
---|
| 291 | -set (CMAKE_INSTALL_PREFIX "$ENV{ISSM_DIR}/externalpackages/gmt/install")
|
---|
| 292 | -
|
---|
| 293 | -# Set install name suffix used for directories and gmt executables
|
---|
| 294 | -# [undefined]:
|
---|
| 295 | -#set (GMT_INSTALL_NAME_SUFFIX "suffix")
|
---|
| 296 | -
|
---|
| 297 | -# Install into traditional directory structure. Disable to install a
|
---|
| 298 | -# distribution type directory structure (doc and share separated) [on]:
|
---|
| 299 | -#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
|
---|
| 300 | -
|
---|
| 301 | -# Install convenience links for GMT modules. Disable to install only the main
|
---|
| 302 | -# gmt program and access modules as "gmt modulename options" [TRUE]:
|
---|
| 303 | -#set (GMT_INSTALL_MODULE_LINKS FALSE)
|
---|
| 304 | -
|
---|
| 305 | -# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
|
---|
| 306 | -set (GMT_INSTALL_RELOCATABLE TRUE)
|
---|
| 307 | -
|
---|
| 308 | -# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
|
---|
| 309 | -#set (GMT_EXCLUDE_GDAL TRUE)
|
---|
| 310 | -#set (GMT_EXCLUDE_PCRE TRUE)
|
---|
| 311 | -#set (GMT_EXCLUDE_PCRE2 TRUE)
|
---|
| 312 | -#set (GMT_EXCLUDE_FFTW3 TRUE)
|
---|
| 313 | -#set (GMT_EXCLUDE_LAPACK TRUE)
|
---|
| 314 | -#set (GMT_EXCLUDE_BLAS TRUE)
|
---|
| 315 | -#set (GMT_EXCLUDE_ZLIB TRUE)
|
---|
| 316 | -
|
---|
| 317 | -# ============================================================================
|
---|
| 318 | -# Advanced configuration begins here. Usually it is not necessary to edit any
|
---|
| 319 | -# settings below. You should know what you are doing if you do though. Note:
|
---|
| 320 | -# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
|
---|
| 321 | -# path is given.
|
---|
| 322 | -# ============================================================================
|
---|
| 323 | -
|
---|
| 324 | -# Set binary installation path [bin]:
|
---|
| 325 | -#set (GMT_BINDIR "bin")
|
---|
| 326 | -
|
---|
| 327 | -# Set library installation path [lib or lib64]:
|
---|
| 328 | -#set (GMT_LIBDIR "lib")
|
---|
| 329 | -
|
---|
| 330 | -# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 331 | -#set (GMT_INCLUDEDIR "include/gmt")
|
---|
| 332 | -
|
---|
| 333 | -# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 334 | -#set (GMT_DATADIR "share/gmt")
|
---|
| 335 | -
|
---|
| 336 | -# Set doc installation path [share/doc or
|
---|
| 337 | -# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 338 | -#set (GMT_DOCDIR "share/doc/gmt")
|
---|
| 339 | -
|
---|
| 340 | -# Set manpage installation path [share/man or
|
---|
| 341 | -# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
|
---|
| 342 | -#set (GMT_MANDIR "share/doc/gmt/man")
|
---|
| 343 | -
|
---|
| 344 | -# Install documentation files from this external location instead of creating
|
---|
| 345 | -# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
|
---|
| 346 | -#set (GMT_INSTALL_EXTERNAL_DOC OFF)
|
---|
| 347 | -
|
---|
| 348 | -# Install manual pages from this external location instead of creating the
|
---|
| 349 | -# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
|
---|
| 350 | -#set (GMT_INSTALL_EXTERNAL_MAN OFF)
|
---|
| 351 | -
|
---|
| 352 | -##
|
---|
| 353 | -## Section 2: Build dependencies (should only be needed if CMake cannot
|
---|
| 354 | -## automatically detect the rights version or path.)
|
---|
| 355 | -##
|
---|
| 356 | -
|
---|
| 357 | -# Set URL to GMT Data server [auto]:
|
---|
| 358 | -#set (GMT_DATA_SERVER "data_server_url")
|
---|
| 359 | -
|
---|
| 360 | -# Set path to GSHHG Shoreline Database [auto]:
|
---|
| 361 | -set (GSHHG_ROOT "$ENV{ISSM_DIR}/externalpackages/gshhg/install")
|
---|
| 362 | -
|
---|
| 363 | -# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
|
---|
| 364 | -#set (COPY_GSHHG TRUE)
|
---|
| 365 | -
|
---|
| 366 | -# Set path to DCW Digital Chart of the World for GMT [auto]:
|
---|
| 367 | -#set (DCW_ROOT "dcw-gmt_path")
|
---|
| 368 | -
|
---|
| 369 | -# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
|
---|
| 370 | -#set (COPY_DCW TRUE)
|
---|
| 371 | -
|
---|
| 372 | -# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
|
---|
| 373 | -#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
|
---|
| 374 | -
|
---|
| 375 | -# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
|
---|
| 376 | -#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
|
---|
| 377 | -
|
---|
| 378 | -# FOR WINDOWS ONLY
|
---|
| 379 | -# Set path to location of Ghostscript binaries (optional install)
|
---|
| 380 | -#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
|
---|
| 381 | -
|
---|
| 382 | -# FOR WINDOWS ONLY
|
---|
| 383 | -# Set path to location where the gmtmex is located.
|
---|
| 384 | -#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
|
---|
| 385 | -
|
---|
| 386 | -# Set location of NetCDF (can be root directory, path to header file or path
|
---|
| 387 | -# to nc-config) [auto]:
|
---|
| 388 | -set (NETCDF_ROOT "$ENV{ISSM_DIR}/externalpackages/netcdf/install")
|
---|
| 389 | -
|
---|
| 390 | -# Set location of GDAL (can be root directory, path to header file or path to
|
---|
| 391 | -# gdal-config) [auto]:
|
---|
| 392 | -set (GDAL_ROOT "$ENV{ISSM_DIR}/externalpackages/gdal/install")
|
---|
| 393 | -
|
---|
| 394 | -# Set location of PCRE (can be root directory, path to header file or path to
|
---|
| 395 | -# pcre-config) [auto]:
|
---|
| 396 | -#set (PCRE_ROOT "pcre_install_prefix")
|
---|
| 397 | -# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
|
---|
| 398 | -# pcre2-config) [auto]:
|
---|
| 399 | -#set (PCRE2_ROOT "pcre2_install_prefix")
|
---|
| 400 | -
|
---|
| 401 | -# Set location of single precision FFTW (can be root directory or path to
|
---|
| 402 | -# header file) [auto]:
|
---|
| 403 | -#set (FFTW3_ROOT "fftw_install_prefix")
|
---|
| 404 | -
|
---|
| 405 | -# Set location of ZLIB (can be root directory or path to header file) [auto]:
|
---|
| 406 | -set (ZLIB_ROOT "$ENV{ISSM_DIR}/externalpackages/zlib/install")
|
---|
| 407 | -
|
---|
| 408 | -# Set location of CURL (can be root directory or path to header file) [auto]:
|
---|
| 409 | -#set (CURL_ROOT "curl_install_prefix")
|
---|
| 410 | -
|
---|
| 411 | -# Set location of GLIB component gthread [auto]. This is an optional (and
|
---|
| 412 | -# experimental) option which you need to enable:
|
---|
| 413 | -#set (GMT_USE_THREADS TRUE)
|
---|
| 414 | -# If pkg-config is not installed (e.g. on Windows) you need to specify these:
|
---|
| 415 | -#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
|
---|
| 416 | -#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
|
---|
| 417 | -
|
---|
| 418 | -# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
|
---|
| 419 | -set (LAPACK_LIBRARY "-L$ENV{ISSM_DIR}/externalpackages/lapack/install/lib -llapack")
|
---|
| 420 | -set (BLAS_LIBRARY "-L$ENV{ISSM_DIR}/externalpackages/lapack/install/lib -lblas")
|
---|
| 421 | -
|
---|
| 422 | -##
|
---|
| 423 | -## Section 3: GMT features
|
---|
| 424 | -##
|
---|
| 425 | -
|
---|
| 426 | -# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
|
---|
| 427 | -# redistributed under the terms of the GPL or LGPL such as Shewchuk's
|
---|
| 428 | -# triangulation (valid values are GPL, LGPL and off) [off]:
|
---|
| 429 | -#set (LICENSE_RESTRICTED GPL)
|
---|
| 430 | -
|
---|
| 431 | -# Allow building of OpenMP if compiler supports it
|
---|
| 432 | -# set (GMT_ENABLE_OPENMP TRUE)
|
---|
| 433 | -
|
---|
| 434 | -# Configure default units (possible values are SI and US) [SI]:
|
---|
| 435 | -#set (UNITS "US")
|
---|
| 436 | -
|
---|
| 437 | -# Enable building of shared libraries [TRUE] (disable to use static libraries;
|
---|
| 438 | -# not recommended; on non-x86 architectures uncomment the next option as well):
|
---|
| 439 | -#set (BUILD_SHARED_LIBS FALSE)
|
---|
| 440 | -
|
---|
| 441 | -# Create position independent code on all targets [auto] (needed for static
|
---|
| 442 | -# build on non-x86):
|
---|
| 443 | -#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
---|
| 444 | -
|
---|
| 445 | -# Build GMT shared lib with supplemental modules [TRUE]:
|
---|
| 446 | -#set (BUILD_SUPPLEMENTS FALSE)
|
---|
| 447 | -
|
---|
| 448 | -# Build/Install GMT Developer include files [TRUE]:
|
---|
| 449 | -# This installs the extra include files and configured files needed by 3rd-party
|
---|
| 450 | -# developers. Until we build a separate gmt-devel we include them in the main
|
---|
| 451 | -# Distribution.
|
---|
| 452 | -#set (BUILD_DEVELOPER FALSE)
|
---|
| 453 | -
|
---|
| 454 | -##
|
---|
| 455 | -## Section 4: Advanced tweaking
|
---|
| 456 | -##
|
---|
| 457 | -
|
---|
| 458 | -#
|
---|
| 459 | -# Testing and development
|
---|
| 460 | -#
|
---|
| 461 | -
|
---|
| 462 | -# Enable running examples/tests with "ctest" or "make check" (out-of-source).
|
---|
| 463 | -# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
|
---|
| 464 | -# line.
|
---|
| 465 | -#enable_testing()
|
---|
| 466 | -#set (DO_EXAMPLES TRUE)
|
---|
| 467 | -#set (DO_TESTS TRUE)
|
---|
| 468 | -#set (DO_ANIMATIONS TRUE)
|
---|
| 469 | -# Number of parallel test jobs with "make check":
|
---|
| 470 | -#set (N_TEST_JOBS 4)
|
---|
| 471 | -
|
---|
| 472 | -# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
|
---|
| 473 | -# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
|
---|
| 474 | -# for testing [OFF]:
|
---|
| 475 | -#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
|
---|
| 476 | -
|
---|
| 477 | -# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
|
---|
| 478 | -# that link against the full gmt libs (not just the API; for building codes
|
---|
| 479 | -# that only need the GMT API, see the gmt-custom project).
|
---|
| 480 | -#set (EXTRA_BUILD_DIRS apidemo)
|
---|
| 481 | -# Uncomment the following line to enable running low-level C tests of the API
|
---|
| 482 | -#set (DO_API_TESTS ON)
|
---|
| 483 | -
|
---|
| 484 | -# Directory in which to install the release sources per default
|
---|
| 485 | -# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
|
---|
| 486 | -#set (GMT_RELEASE_PREFIX "release-src-prefix")
|
---|
| 487 | -
|
---|
| 488 | -# If set to false, image conversion from PS images to PNG and PDF does
|
---|
| 489 | -# not depend on the gmt binary target. Note: "make gmt" is then required
|
---|
| 490 | -# before docs_depends [TRUE].
|
---|
| 491 | -#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
|
---|
| 492 | -
|
---|
| 493 | -#
|
---|
| 494 | -# Debugging
|
---|
| 495 | -#
|
---|
| 496 | -
|
---|
| 497 | -# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
|
---|
| 498 | -# [Release]:
|
---|
| 499 | -#set (CMAKE_BUILD_TYPE Debug)
|
---|
| 500 | -
|
---|
| 501 | -# Extra debugging for developers:
|
---|
| 502 | -#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
|
---|
| 503 | -## So Xcode can find the supplemental plug-ins during debug sessions
|
---|
| 504 | -# add_definitions(-DXCODER)
|
---|
| 505 | -# add_definitions(-DDEBUG_MODERN) # To set PPID == 0 during Xcode test
|
---|
| 506 | -# message("Add Xcode definition for GMT")
|
---|
| 507 | -#endif()
|
---|
| 508 | -#add_definitions(-DDEBUG)
|
---|
| 509 | -#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
|
---|
| 510 | -#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
|
---|
| 511 | -#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") # extra warnings
|
---|
| 512 | -#set (CMAKE_C_FLAGS_DEBUG -ggdb3) # gdb debugging symbols
|
---|
| 513 | -#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE) # debug link dependencies
|
---|
| 514 | -if (HAVE_OPENMP)
|
---|
| 515 | - set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions") # check uninitialized variables
|
---|
| 516 | -else (HAVE_OPENMP)
|
---|
| 517 | - set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized") # check uninitialized variables
|
---|
| 518 | -endif (HAVE_OPENMP)
|
---|
| 519 | -
|
---|
| 520 | -#
|
---|
| 521 | -# System specific tweaks
|
---|
| 522 | -#
|
---|
| 523 | -
|
---|
| 524 | -# This is for GCC on Solaris to avoid "relocations remain against allocatable
|
---|
| 525 | -# but non-writable sections" problems:
|
---|
| 526 | -#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
|
---|
| 527 | -
|
---|
| 528 | -# This may be needed to enable strdup and extended math functions with GCC and
|
---|
| 529 | -# Suncc on Solaris:
|
---|
| 530 | -#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
|
---|
| 531 | -
|
---|
| 532 | -# Do not warn when building with Windows SDK or Visual Studio Express:
|
---|
| 533 | -#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
|
---|
| 534 | -
|
---|
| 535 | -# Manually select runtime library when compiling with Windows SDK or Visual
|
---|
| 536 | -# Studio Express:
|
---|
| 537 | -#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
|
---|
| 538 | -
|
---|
| 539 | -# If your NetCDF library is static (not recommended, applies to Windows only)
|
---|
| 540 | -#set (NETCDF_STATIC TRUE)
|
---|
| 541 | -
|
---|
| 542 | -# If want to rename the DLLs to something else than the default (e.g. to
|
---|
| 543 | -# append the bitness - Windows only)
|
---|
| 544 | -# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
|
---|
| 545 | -#if (WIN32)
|
---|
| 546 | -# set (BITAGE 32)
|
---|
| 547 | -# # Detect if we are building a 32 or 64 bits version
|
---|
| 548 | -# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
---|
| 549 | -# set (BITAGE 64)
|
---|
| 550 | -# endif ()
|
---|
| 551 | -# set (GMT_DLL_RENAME gmt_w${BITAGE})
|
---|
| 552 | -# set (PSL_DLL_RENAME psl_w${BITAGE})
|
---|
| 553 | -#endif(WIN32)
|
---|
| 554 | -
|
---|
| 555 | -# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
|
---|
| 556 | -#if(MSVC11)
|
---|
| 557 | -# add_definitions(/D_ALLOW_KEYWORD_MACROS)
|
---|
| 558 | -#endif(MSVC11)
|
---|
| 559 | Index: ../trunk-jpl/externalpackages/gmt/configs/5.1/linux/cmake/ConfigUser.cmake
|
---|
| 560 | ===================================================================
|
---|
| 561 | --- ../trunk-jpl/externalpackages/gmt/configs/5.1/linux/cmake/ConfigUser.cmake (nonexistent)
|
---|
| 562 | +++ ../trunk-jpl/externalpackages/gmt/configs/5.1/linux/cmake/ConfigUser.cmake (revision 24455)
|
---|
| 563 | @@ -0,0 +1,240 @@
|
---|
| 564 | +#
|
---|
| 565 | +# $Id: ConfigUserTemplate.cmake 12904 2014-02-17 20:52:35Z fwobbe $
|
---|
| 566 | +#
|
---|
| 567 | +# Copyright (c) 1991-2014 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
|
---|
| 568 | +# See LICENSE.TXT file for copying and redistribution conditions.
|
---|
| 569 | +#
|
---|
| 570 | +# This program is free software; you can redistribute it and/or modify it
|
---|
| 571 | +# under the terms of the GNU Lesser General Public License as published by the
|
---|
| 572 | +# Free Software Foundation; version 3 or any later version.
|
---|
| 573 | +#
|
---|
| 574 | +# This program is distributed in the hope that it will be useful, but WITHOUT
|
---|
| 575 | +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
---|
| 576 | +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
---|
| 577 | +# for more details.
|
---|
| 578 | +#
|
---|
| 579 | +# Contact info: gmt.soest.hawaii.edu
|
---|
| 580 | +# ----------------------------------------------------------------------------
|
---|
| 581 | +
|
---|
| 582 | +# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
|
---|
| 583 | +# basis. First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
|
---|
| 584 | +# edit 'ConfigUser.cmake'. 'ConfigUser.cmake' is not version controlled
|
---|
| 585 | +# (currently listed in svn:ignore property)
|
---|
| 586 | +#
|
---|
| 587 | +# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
|
---|
| 588 | +# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
|
---|
| 589 | +# "False", "off", "no", and "something-NotFound" are all false). Other values
|
---|
| 590 | +# are true. Thus it does not matter whether you use TRUE and FALSE, ON and
|
---|
| 591 | +# OFF, or YES and NO for your booleans.
|
---|
| 592 | +
|
---|
| 593 | +##
|
---|
| 594 | +## Section 1: Installation paths
|
---|
| 595 | +##
|
---|
| 596 | +
|
---|
| 597 | +# ============================================================================
|
---|
| 598 | +# Basic setup begins here. All settings are optional. In most cases, setting
|
---|
| 599 | +# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
|
---|
| 600 | +# reasonable defaults enabled.
|
---|
| 601 | +# ============================================================================
|
---|
| 602 | +
|
---|
| 603 | +# Installation path (usually defaults to /usr/local) [auto]:
|
---|
| 604 | +set (CMAKE_INSTALL_PREFIX "$ENV{ISSM_DIR}/externalpackages/gmt/install")
|
---|
| 605 | +
|
---|
| 606 | +# Set install name suffix used for directories and gmt executables
|
---|
| 607 | +# [undefined]:
|
---|
| 608 | +#set (GMT_INSTALL_NAME_SUFFIX "suffix")
|
---|
| 609 | +
|
---|
| 610 | +# Install into traditional directory structure. Disable to install a
|
---|
| 611 | +# distribution type directory structure (doc and share separated) [on]:
|
---|
| 612 | +#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
|
---|
| 613 | +
|
---|
| 614 | +# Install convenience links for GMT modules. Disable to install only the main
|
---|
| 615 | +# gmt program and access modules as "gmt modulename options" [TRUE]:
|
---|
| 616 | +#set (GMT_INSTALL_MODULE_LINKS FALSE)
|
---|
| 617 | +
|
---|
| 618 | +# Make executables relocatable on supported platforms (relative RPATH) [TRUE]:
|
---|
| 619 | +#set (GMT_INSTALL_RELOCATABLE FALSE)
|
---|
| 620 | +
|
---|
| 621 | +# ============================================================================
|
---|
| 622 | +# Advanced configuration begins here. Usually it is not necessary to edit any
|
---|
| 623 | +# settings below. You should know what you are doing if you do though. Note:
|
---|
| 624 | +# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
|
---|
| 625 | +# path is given.
|
---|
| 626 | +# ============================================================================
|
---|
| 627 | +
|
---|
| 628 | +# Set binary installation path [bin]:
|
---|
| 629 | +#set (GMT_BINDIR "bin")
|
---|
| 630 | +
|
---|
| 631 | +# Set library installation path [lib or lib64]:
|
---|
| 632 | +#set (GMT_LIBDIR "lib")
|
---|
| 633 | +
|
---|
| 634 | +# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 635 | +#set (GMT_INCLUDEDIR "include/gmt")
|
---|
| 636 | +
|
---|
| 637 | +# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 638 | +#set (GMT_DATADIR "share/gmt")
|
---|
| 639 | +
|
---|
| 640 | +# Set doc installation path [share/doc or
|
---|
| 641 | +# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 642 | +#set (GMT_DOCDIR "share/doc/gmt")
|
---|
| 643 | +
|
---|
| 644 | +# Set manpage installation path [share/man or
|
---|
| 645 | +# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
|
---|
| 646 | +#set (GMT_MANDIR "share/doc/gmt/man")
|
---|
| 647 | +
|
---|
| 648 | +# Install documentation files from this external location instead of creating
|
---|
| 649 | +# new PDF and HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
|
---|
| 650 | +#set (GMT_INSTALL_EXTERNAL_DOC OFF)
|
---|
| 651 | +
|
---|
| 652 | +# Install manual pages from this external location instead of creating the
|
---|
| 653 | +# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
|
---|
| 654 | +#set (GMT_INSTALL_EXTERNAL_MAN OFF)
|
---|
| 655 | +
|
---|
| 656 | +##
|
---|
| 657 | +## Section 2: Build dependencies (should only be needed if CMake cannot
|
---|
| 658 | +## automatically detect the rights version or path.)
|
---|
| 659 | +##
|
---|
| 660 | +
|
---|
| 661 | +# Set path to GSHHG Shoreline Database [auto]:
|
---|
| 662 | +set (GSHHG_ROOT "$ENV{ISSM_DIR}/externalpackages/gshhg/install")
|
---|
| 663 | +
|
---|
| 664 | +# Copy GSHHG files to $/coast [FALSE]:
|
---|
| 665 | +#set (COPY_GSHHG TRUE)
|
---|
| 666 | +
|
---|
| 667 | +# Set path to DCW Digital Chart of the World for GMT [auto]:
|
---|
| 668 | +#set (DCW_ROOT "dcw-gmt_path")
|
---|
| 669 | +
|
---|
| 670 | +# Copy DCW files to $/dcw [FALSE]:
|
---|
| 671 | +#set (COPY_DCW TRUE)
|
---|
| 672 | +
|
---|
| 673 | +# Set location of NetCDF (can be root directory, path to header file or path
|
---|
| 674 | +# to nc-config) [auto]:
|
---|
| 675 | +set (NETCDF_ROOT "$ENV{ISSM_DIR}/externalpackages/netcdf/install")
|
---|
| 676 | +
|
---|
| 677 | +# Set location of GDAL (can be root directory, path to header file or path to
|
---|
| 678 | +# gdal-config) [auto]:
|
---|
| 679 | +set (GDAL_ROOT "$ENV{ISSM_DIR}/externalpackages/gdal/install")
|
---|
| 680 | +
|
---|
| 681 | +# Set location of PCRE (can be root directory, path to header file or path to
|
---|
| 682 | +# pcre-config) [auto]:
|
---|
| 683 | +#set (PCRE_ROOT "pcre_install_prefix")
|
---|
| 684 | +
|
---|
| 685 | +# Set location of single precision FFTW (can be root directory or path to
|
---|
| 686 | +# header file) [auto]:
|
---|
| 687 | +#set (FFTW3_ROOT "fftw_install_prefix")
|
---|
| 688 | +
|
---|
| 689 | +# Set location of ZLIB (can be root directory or path to header file) [auto]:
|
---|
| 690 | +set (ZLIB_ROOT "$ENV{ISSM_DIR}/externalpackages/zlib/install")
|
---|
| 691 | +
|
---|
| 692 | +##
|
---|
| 693 | +## Section 3: GMT features
|
---|
| 694 | +##
|
---|
| 695 | +
|
---|
| 696 | +# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
|
---|
| 697 | +# redistributed under the terms of the GPL or LGPL such as Shewchuk's
|
---|
| 698 | +# triangulation (valid values are GPL, LGPL and off) [off]:
|
---|
| 699 | +#set (LICENSE_RESTRICTED GPL)
|
---|
| 700 | +
|
---|
| 701 | +# Configure default units (possible values are SI and US) [SI]:
|
---|
| 702 | +#set (UNITS "US")
|
---|
| 703 | +
|
---|
| 704 | +# Enable building of shared libraries [TRUE] (disable to use static libraries;
|
---|
| 705 | +# not recommended):
|
---|
| 706 | +#set (BUILD_SHARED_LIBS FALSE)
|
---|
| 707 | +
|
---|
| 708 | +# Build GMT shared lib with supplemental modules [TRUE]:
|
---|
| 709 | +#set (BUILD_SUPPLEMENTS FALSE)
|
---|
| 710 | +
|
---|
| 711 | +##
|
---|
| 712 | +## Section 4: Advanced tweaking
|
---|
| 713 | +##
|
---|
| 714 | +
|
---|
| 715 | +#
|
---|
| 716 | +# Testing and development
|
---|
| 717 | +#
|
---|
| 718 | +
|
---|
| 719 | +# Enable running examples/tests with "ctest" or "make check" (out-of-source).
|
---|
| 720 | +# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
|
---|
| 721 | +# line.
|
---|
| 722 | +#enable_testing()
|
---|
| 723 | +#set (DO_EXAMPLES TRUE)
|
---|
| 724 | +#set (DO_TESTS TRUE)
|
---|
| 725 | +# Number of parallel test jobs with "make check":
|
---|
| 726 | +#set (N_TEST_JOBS 4)
|
---|
| 727 | +
|
---|
| 728 | +# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
|
---|
| 729 | +# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
|
---|
| 730 | +# for testing [OFF]:
|
---|
| 731 | +#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
|
---|
| 732 | +
|
---|
| 733 | +# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
|
---|
| 734 | +# that link against the full gmt libs (not just the API; for building codes
|
---|
| 735 | +# that only need the GMT API, see the gmtextension project).
|
---|
| 736 | +#set (EXTRA_BUILD_DIRS apidemo)
|
---|
| 737 | +
|
---|
| 738 | +# Directory in which to install the release sources per default
|
---|
| 739 | +# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
|
---|
| 740 | +#set (GMT_RELEASE_PREFIX "release-src-prefix")
|
---|
| 741 | +
|
---|
| 742 | +# If set to false, image conversion from PS images to PNG and PDF does
|
---|
| 743 | +# not depend on the gmt binary target. Note: "make gmt" is then required
|
---|
| 744 | +# before docs_depends [TRUE].
|
---|
| 745 | +#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
|
---|
| 746 | +
|
---|
| 747 | +#
|
---|
| 748 | +# Debugging
|
---|
| 749 | +#
|
---|
| 750 | +
|
---|
| 751 | +# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
|
---|
| 752 | +# [Release]:
|
---|
| 753 | +#set (CMAKE_BUILD_TYPE Debug)
|
---|
| 754 | +
|
---|
| 755 | +# Extra debugging for developers:
|
---|
| 756 | +#add_definitions(-DDEBUG)
|
---|
| 757 | +#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
|
---|
| 758 | +#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
|
---|
| 759 | +#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") # extra warnings
|
---|
| 760 | +#set (CMAKE_C_FLAGS_DEBUG -ggdb3) # gdb debugging symbols
|
---|
| 761 | +#set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized") # check uninitialized variables
|
---|
| 762 | +#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE) # debug link dependencies
|
---|
| 763 | +
|
---|
| 764 | +#
|
---|
| 765 | +# System specific tweaks
|
---|
| 766 | +#
|
---|
| 767 | +
|
---|
| 768 | +# This is for GCC on Solaris to avoid "relocations remain against allocatable
|
---|
| 769 | +# but non-writable sections" problems:
|
---|
| 770 | +#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
|
---|
| 771 | +
|
---|
| 772 | +# This may be needed to enable strdup and extended math functions with GCC and
|
---|
| 773 | +# Suncc on Solaris:
|
---|
| 774 | +#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
|
---|
| 775 | +
|
---|
| 776 | +# Do not warn when building with Windows SDK or Visual Studio Express:
|
---|
| 777 | +#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
|
---|
| 778 | +
|
---|
| 779 | +# Manually select runtime library when compiling with Windows SDK or Visual
|
---|
| 780 | +# Studio Express:
|
---|
| 781 | +#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
|
---|
| 782 | +
|
---|
| 783 | +# If your NetCDF library is static (not recommended, applies to Windows only)
|
---|
| 784 | +#set (NETCDF_STATIC TRUE)
|
---|
| 785 | +
|
---|
| 786 | +# If want to rename the DLLs to something else than the default (e.g. to
|
---|
| 787 | +# append the bitness - Windows only)
|
---|
| 788 | +#if (WIN32)
|
---|
| 789 | +# set (BITAGE 32)
|
---|
| 790 | +# # Detect if we are building a 32 or 64 bits version
|
---|
| 791 | +# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
---|
| 792 | +# set (BITAGE 64)
|
---|
| 793 | +# endif ()
|
---|
| 794 | +# set (GMT_DLL_RENAME gmt_w${BITAGE})
|
---|
| 795 | +# set (PSL_DLL_RENAME psl_w${BITAGE})
|
---|
| 796 | +#endif(WIN32)
|
---|
| 797 | +
|
---|
| 798 | +# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
|
---|
| 799 | +#if(MSVC11)
|
---|
| 800 | +# add_definitions(/D_ALLOW_KEYWORD_MACROS)
|
---|
| 801 | +#endif(MSVC11)
|
---|
| 802 | +
|
---|
| 803 | +# vim: textwidth=78 noexpandtab tabstop=2 softtabstop=2 shiftwidth=2
|
---|
| 804 | Index: ../trunk-jpl/externalpackages/gmt/configs/6.0/linux/cmake/ConfigUser.cmake
|
---|
| 805 | ===================================================================
|
---|
| 806 | --- ../trunk-jpl/externalpackages/gmt/configs/6.0/linux/cmake/ConfigUser.cmake (nonexistent)
|
---|
| 807 | +++ ../trunk-jpl/externalpackages/gmt/configs/6.0/linux/cmake/ConfigUser.cmake (revision 24455)
|
---|
| 808 | @@ -0,0 +1,308 @@
|
---|
| 809 | +#
|
---|
| 810 | +#
|
---|
| 811 | +# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
|
---|
| 812 | +# See LICENSE.TXT file for copying and redistribution conditions.
|
---|
| 813 | +#
|
---|
| 814 | +# This program is free software; you can redistribute it and/or modify it
|
---|
| 815 | +# under the terms of the GNU Lesser General Public License as published by the
|
---|
| 816 | +# Free Software Foundation; version 3 or any later version.
|
---|
| 817 | +#
|
---|
| 818 | +# This program is distributed in the hope that it will be useful, but WITHOUT
|
---|
| 819 | +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
---|
| 820 | +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
---|
| 821 | +# for more details.
|
---|
| 822 | +#
|
---|
| 823 | +# Contact info: www.generic-mapping-tools.org
|
---|
| 824 | +# ----------------------------------------------------------------------------
|
---|
| 825 | +
|
---|
| 826 | +# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
|
---|
| 827 | +# basis. First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
|
---|
| 828 | +# edit 'ConfigUser.cmake'. 'ConfigUser.cmake' is not version controlled
|
---|
| 829 | +# (currently listed in .gitignore).
|
---|
| 830 | +#
|
---|
| 831 | +# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
|
---|
| 832 | +# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
|
---|
| 833 | +# "False", "off", "no", and "something-NotFound" are all false). Other values
|
---|
| 834 | +# are true. Thus it does not matter whether you use TRUE and FALSE, ON and
|
---|
| 835 | +# OFF, or YES and NO for your booleans.
|
---|
| 836 | +
|
---|
| 837 | +##
|
---|
| 838 | +## Section 1: Installation paths
|
---|
| 839 | +##
|
---|
| 840 | +
|
---|
| 841 | +# ============================================================================
|
---|
| 842 | +# Basic setup begins here. All settings are optional. In most cases, setting
|
---|
| 843 | +# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
|
---|
| 844 | +# reasonable defaults enabled. Note: If you need to specify directory names
|
---|
| 845 | +# with spaces (e.g., on Windows) then you must put them in quotes.
|
---|
| 846 | +# ============================================================================
|
---|
| 847 | +
|
---|
| 848 | +# Installation path (usually defaults to /usr/local) [auto]:
|
---|
| 849 | +set (CMAKE_INSTALL_PREFIX "$ENV{ISSM_DIR}/externalpackages/gmt/install")
|
---|
| 850 | +
|
---|
| 851 | +# Set install name suffix used for directories and gmt executables
|
---|
| 852 | +# [undefined]:
|
---|
| 853 | +#set (GMT_INSTALL_NAME_SUFFIX "suffix")
|
---|
| 854 | +
|
---|
| 855 | +# Install into traditional directory structure. Disable to install a
|
---|
| 856 | +# distribution type directory structure (doc and share separated) [on]:
|
---|
| 857 | +#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
|
---|
| 858 | +
|
---|
| 859 | +# Install convenience links for GMT modules. Disable to install only the main
|
---|
| 860 | +# gmt program and access modules as "gmt modulename options" [TRUE]:
|
---|
| 861 | +#set (GMT_INSTALL_MODULE_LINKS FALSE)
|
---|
| 862 | +
|
---|
| 863 | +# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
|
---|
| 864 | +set (GMT_INSTALL_RELOCATABLE TRUE)
|
---|
| 865 | +
|
---|
| 866 | +# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
|
---|
| 867 | +#set (GMT_EXCLUDE_GDAL TRUE)
|
---|
| 868 | +#set (GMT_EXCLUDE_PCRE TRUE)
|
---|
| 869 | +#set (GMT_EXCLUDE_PCRE2 TRUE)
|
---|
| 870 | +#set (GMT_EXCLUDE_FFTW3 TRUE)
|
---|
| 871 | +#set (GMT_EXCLUDE_LAPACK TRUE)
|
---|
| 872 | +#set (GMT_EXCLUDE_BLAS TRUE)
|
---|
| 873 | +#set (GMT_EXCLUDE_ZLIB TRUE)
|
---|
| 874 | +
|
---|
| 875 | +# ============================================================================
|
---|
| 876 | +# Advanced configuration begins here. Usually it is not necessary to edit any
|
---|
| 877 | +# settings below. You should know what you are doing if you do though. Note:
|
---|
| 878 | +# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
|
---|
| 879 | +# path is given.
|
---|
| 880 | +# ============================================================================
|
---|
| 881 | +
|
---|
| 882 | +# Set binary installation path [bin]:
|
---|
| 883 | +#set (GMT_BINDIR "bin")
|
---|
| 884 | +
|
---|
| 885 | +# Set library installation path [lib or lib64]:
|
---|
| 886 | +#set (GMT_LIBDIR "lib")
|
---|
| 887 | +
|
---|
| 888 | +# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 889 | +#set (GMT_INCLUDEDIR "include/gmt")
|
---|
| 890 | +
|
---|
| 891 | +# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 892 | +#set (GMT_DATADIR "share/gmt")
|
---|
| 893 | +
|
---|
| 894 | +# Set doc installation path [share/doc or
|
---|
| 895 | +# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
|
---|
| 896 | +#set (GMT_DOCDIR "share/doc/gmt")
|
---|
| 897 | +
|
---|
| 898 | +# Set manpage installation path [share/man or
|
---|
| 899 | +# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
|
---|
| 900 | +#set (GMT_MANDIR "share/doc/gmt/man")
|
---|
| 901 | +
|
---|
| 902 | +# Install documentation files from this external location instead of creating
|
---|
| 903 | +# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
|
---|
| 904 | +#set (GMT_INSTALL_EXTERNAL_DOC OFF)
|
---|
| 905 | +
|
---|
| 906 | +# Install manual pages from this external location instead of creating the
|
---|
| 907 | +# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
|
---|
| 908 | +#set (GMT_INSTALL_EXTERNAL_MAN OFF)
|
---|
| 909 | +
|
---|
| 910 | +##
|
---|
| 911 | +## Section 2: Build dependencies (should only be needed if CMake cannot
|
---|
| 912 | +## automatically detect the rights version or path.)
|
---|
| 913 | +##
|
---|
| 914 | +
|
---|
| 915 | +# Set URL to GMT Data server [auto]:
|
---|
| 916 | +#set (GMT_DATA_SERVER "data_server_url")
|
---|
| 917 | +
|
---|
| 918 | +# Set path to GSHHG Shoreline Database [auto]:
|
---|
| 919 | +set (GSHHG_ROOT "$ENV{ISSM_DIR}/externalpackages/gshhg/install")
|
---|
| 920 | +
|
---|
| 921 | +# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
|
---|
| 922 | +#set (COPY_GSHHG TRUE)
|
---|
| 923 | +
|
---|
| 924 | +# Set path to DCW Digital Chart of the World for GMT [auto]:
|
---|
| 925 | +#set (DCW_ROOT "dcw-gmt_path")
|
---|
| 926 | +
|
---|
| 927 | +# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
|
---|
| 928 | +#set (COPY_DCW TRUE)
|
---|
| 929 | +
|
---|
| 930 | +# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
|
---|
| 931 | +#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
|
---|
| 932 | +
|
---|
| 933 | +# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
|
---|
| 934 | +#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
|
---|
| 935 | +
|
---|
| 936 | +# FOR WINDOWS ONLY
|
---|
| 937 | +# Set path to location of Ghostscript binaries (optional install)
|
---|
| 938 | +#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
|
---|
| 939 | +
|
---|
| 940 | +# FOR WINDOWS ONLY
|
---|
| 941 | +# Set path to location where the gmtmex is located.
|
---|
| 942 | +#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
|
---|
| 943 | +
|
---|
| 944 | +# Set location of NetCDF (can be root directory, path to header file or path
|
---|
| 945 | +# to nc-config) [auto]:
|
---|
| 946 | +set (NETCDF_ROOT "$ENV{ISSM_DIR}/externalpackages/netcdf/install")
|
---|
| 947 | +
|
---|
| 948 | +# Set location of GDAL (can be root directory, path to header file or path to
|
---|
| 949 | +# gdal-config) [auto]:
|
---|
| 950 | +set (GDAL_ROOT "$ENV{ISSM_DIR}/externalpackages/gdal/install")
|
---|
| 951 | +
|
---|
| 952 | +# Set location of PCRE (can be root directory, path to header file or path to
|
---|
| 953 | +# pcre-config) [auto]:
|
---|
| 954 | +#set (PCRE_ROOT "pcre_install_prefix")
|
---|
| 955 | +# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
|
---|
| 956 | +# pcre2-config) [auto]:
|
---|
| 957 | +#set (PCRE2_ROOT "pcre2_install_prefix")
|
---|
| 958 | +
|
---|
| 959 | +# Set location of single precision FFTW (can be root directory or path to
|
---|
| 960 | +# header file) [auto]:
|
---|
| 961 | +#set (FFTW3_ROOT "fftw_install_prefix")
|
---|
| 962 | +
|
---|
| 963 | +# Set location of ZLIB (can be root directory or path to header file) [auto]:
|
---|
| 964 | +set (ZLIB_ROOT "$ENV{ISSM_DIR}/externalpackages/zlib/install")
|
---|
| 965 | +
|
---|
| 966 | +# Set location of CURL (can be root directory or path to header file) [auto]:
|
---|
| 967 | +#set (CURL_ROOT "curl_install_prefix")
|
---|
| 968 | +
|
---|
| 969 | +# Set location of GLIB component gthread [auto]. This is an optional (and
|
---|
| 970 | +# experimental) option which you need to enable:
|
---|
| 971 | +#set (GMT_USE_THREADS TRUE)
|
---|
| 972 | +# If pkg-config is not installed (e.g. on Windows) you need to specify these:
|
---|
| 973 | +#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
|
---|
| 974 | +#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
|
---|
| 975 | +
|
---|
| 976 | +# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
|
---|
| 977 | +set (LAPACK_LIBRARY "-L$ENV{ISSM_DIR}/externalpackages/lapack/install/lib -llapack")
|
---|
| 978 | +set (BLAS_LIBRARY "-L$ENV{ISSM_DIR}/externalpackages/lapack/install/lib -lblas")
|
---|
| 979 | +
|
---|
| 980 | +##
|
---|
| 981 | +## Section 3: GMT features
|
---|
| 982 | +##
|
---|
| 983 | +
|
---|
| 984 | +# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
|
---|
| 985 | +# redistributed under the terms of the GPL or LGPL such as Shewchuk's
|
---|
| 986 | +# triangulation (valid values are GPL, LGPL and off) [off]:
|
---|
| 987 | +#set (LICENSE_RESTRICTED GPL)
|
---|
| 988 | +
|
---|
| 989 | +# Allow building of OpenMP if compiler supports it
|
---|
| 990 | +# set (GMT_ENABLE_OPENMP TRUE)
|
---|
| 991 | +
|
---|
| 992 | +# Configure default units (possible values are SI and US) [SI]:
|
---|
| 993 | +#set (UNITS "US")
|
---|
| 994 | +
|
---|
| 995 | +# Enable building of shared libraries [TRUE] (disable to use static libraries;
|
---|
| 996 | +# not recommended; on non-x86 architectures uncomment the next option as well):
|
---|
| 997 | +#set (BUILD_SHARED_LIBS FALSE)
|
---|
| 998 | +
|
---|
| 999 | +# Create position independent code on all targets [auto] (needed for static
|
---|
| 1000 | +# build on non-x86):
|
---|
| 1001 | +#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
---|
| 1002 | +
|
---|
| 1003 | +# Build GMT shared lib with supplemental modules [TRUE]:
|
---|
| 1004 | +#set (BUILD_SUPPLEMENTS FALSE)
|
---|
| 1005 | +
|
---|
| 1006 | +# Build/Install GMT Developer include files [TRUE]:
|
---|
| 1007 | +# This installs the extra include files and configured files needed by 3rd-party
|
---|
| 1008 | +# developers. Until we build a separate gmt-devel we include them in the main
|
---|
| 1009 | +# Distribution.
|
---|
| 1010 | +#set (BUILD_DEVELOPER FALSE)
|
---|
| 1011 | +
|
---|
| 1012 | +##
|
---|
| 1013 | +## Section 4: Advanced tweaking
|
---|
| 1014 | +##
|
---|
| 1015 | +
|
---|
| 1016 | +#
|
---|
| 1017 | +# Testing and development
|
---|
| 1018 | +#
|
---|
| 1019 | +
|
---|
| 1020 | +# Enable running examples/tests with "ctest" or "make check" (out-of-source).
|
---|
| 1021 | +# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
|
---|
| 1022 | +# line.
|
---|
| 1023 | +#enable_testing()
|
---|
| 1024 | +#set (DO_EXAMPLES TRUE)
|
---|
| 1025 | +#set (DO_TESTS TRUE)
|
---|
| 1026 | +#set (DO_ANIMATIONS TRUE)
|
---|
| 1027 | +# Number of parallel test jobs with "make check":
|
---|
| 1028 | +#set (N_TEST_JOBS 4)
|
---|
| 1029 | +
|
---|
| 1030 | +# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
|
---|
| 1031 | +# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
|
---|
| 1032 | +# for testing [OFF]:
|
---|
| 1033 | +#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
|
---|
| 1034 | +
|
---|
| 1035 | +# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
|
---|
| 1036 | +# that link against the full gmt libs (not just the API; for building codes
|
---|
| 1037 | +# that only need the GMT API, see the gmt-custom project).
|
---|
| 1038 | +#set (EXTRA_BUILD_DIRS apidemo)
|
---|
| 1039 | +# Uncomment the following line to enable running low-level C tests of the API
|
---|
| 1040 | +#set (DO_API_TESTS ON)
|
---|
| 1041 | +
|
---|
| 1042 | +# Directory in which to install the release sources per default
|
---|
| 1043 | +# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
|
---|
| 1044 | +#set (GMT_RELEASE_PREFIX "release-src-prefix")
|
---|
| 1045 | +
|
---|
| 1046 | +# If set to false, image conversion from PS images to PNG and PDF does
|
---|
| 1047 | +# not depend on the gmt binary target. Note: "make gmt" is then required
|
---|
| 1048 | +# before docs_depends [TRUE].
|
---|
| 1049 | +#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
|
---|
| 1050 | +
|
---|
| 1051 | +#
|
---|
| 1052 | +# Debugging
|
---|
| 1053 | +#
|
---|
| 1054 | +
|
---|
| 1055 | +# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
|
---|
| 1056 | +# [Release]:
|
---|
| 1057 | +#set (CMAKE_BUILD_TYPE Debug)
|
---|
| 1058 | +
|
---|
| 1059 | +# Extra debugging for developers:
|
---|
| 1060 | +#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
|
---|
| 1061 | +## So Xcode can find the supplemental plug-ins during debug sessions
|
---|
| 1062 | +# add_definitions(-DXCODER)
|
---|
| 1063 | +# add_definitions(-DDEBUG_MODERN) # To set PPID == 0 during Xcode test
|
---|
| 1064 | +# message("Add Xcode definition for GMT")
|
---|
| 1065 | +#endif()
|
---|
| 1066 | +#add_definitions(-DDEBUG)
|
---|
| 1067 | +#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
|
---|
| 1068 | +#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
|
---|
| 1069 | +#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") # extra warnings
|
---|
| 1070 | +#set (CMAKE_C_FLAGS_DEBUG -ggdb3) # gdb debugging symbols
|
---|
| 1071 | +#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE) # debug link dependencies
|
---|
| 1072 | +if (HAVE_OPENMP)
|
---|
| 1073 | + set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions") # check uninitialized variables
|
---|
| 1074 | +else (HAVE_OPENMP)
|
---|
| 1075 | + set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized") # check uninitialized variables
|
---|
| 1076 | +endif (HAVE_OPENMP)
|
---|
| 1077 | +
|
---|
| 1078 | +#
|
---|
| 1079 | +# System specific tweaks
|
---|
| 1080 | +#
|
---|
| 1081 | +
|
---|
| 1082 | +# This is for GCC on Solaris to avoid "relocations remain against allocatable
|
---|
| 1083 | +# but non-writable sections" problems:
|
---|
| 1084 | +#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
|
---|
| 1085 | +
|
---|
| 1086 | +# This may be needed to enable strdup and extended math functions with GCC and
|
---|
| 1087 | +# Suncc on Solaris:
|
---|
| 1088 | +#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
|
---|
| 1089 | +
|
---|
| 1090 | +# Do not warn when building with Windows SDK or Visual Studio Express:
|
---|
| 1091 | +#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
|
---|
| 1092 | +
|
---|
| 1093 | +# Manually select runtime library when compiling with Windows SDK or Visual
|
---|
| 1094 | +# Studio Express:
|
---|
| 1095 | +#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
|
---|
| 1096 | +
|
---|
| 1097 | +# If your NetCDF library is static (not recommended, applies to Windows only)
|
---|
| 1098 | +#set (NETCDF_STATIC TRUE)
|
---|
| 1099 | +
|
---|
| 1100 | +# If want to rename the DLLs to something else than the default (e.g. to
|
---|
| 1101 | +# append the bitness - Windows only)
|
---|
| 1102 | +# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
|
---|
| 1103 | +#if (WIN32)
|
---|
| 1104 | +# set (BITAGE 32)
|
---|
| 1105 | +# # Detect if we are building a 32 or 64 bits version
|
---|
| 1106 | +# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
|
---|
| 1107 | +# set (BITAGE 64)
|
---|
| 1108 | +# endif ()
|
---|
| 1109 | +# set (GMT_DLL_RENAME gmt_w${BITAGE})
|
---|
| 1110 | +# set (PSL_DLL_RENAME psl_w${BITAGE})
|
---|
| 1111 | +#endif(WIN32)
|
---|
| 1112 | +
|
---|
| 1113 | +# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
|
---|
| 1114 | +#if(MSVC11)
|
---|
| 1115 | +# add_definitions(/D_ALLOW_KEYWORD_MACROS)
|
---|
| 1116 | +#endif(MSVC11)
|
---|