Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

ConfigUserTemplate.cmake 10 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
  1. #
  2. # $Id$
  3. #
  4. # Copyright (c) 1991-2015 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis and F. Wobbe
  5. # See LICENSE.TXT file for copying and redistribution conditions.
  6. #
  7. # This program is free software; you can redistribute it and/or modify it
  8. # under the terms of the GNU Lesser General Public License as published by the
  9. # Free Software Foundation; version 3 or any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful, but WITHOUT
  12. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
  14. # for more details.
  15. #
  16. # Contact info: gmt.soest.hawaii.edu
  17. # ----------------------------------------------------------------------------
  18. # Use this file to override variables in 'ConfigDefault.cmake' on a per-user
  19. # basis. First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
  20. # edit 'ConfigUser.cmake'. 'ConfigUser.cmake' is not version controlled
  21. # (currently listed in svn:ignore property)
  22. #
  23. # Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
  24. # ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
  25. # "False", "off", "no", and "something-NotFound" are all false). Other values
  26. # are true. Thus it does not matter whether you use TRUE and FALSE, ON and
  27. # OFF, or YES and NO for your booleans.
  28. ##
  29. ## Section 1: Installation paths
  30. ##
  31. # ============================================================================
  32. # Basic setup begins here. All settings are optional. In most cases, setting
  33. # CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
  34. # reasonable defaults enabled.
  35. # ============================================================================
  36. # Installation path (usually defaults to /usr/local) [auto]:
  37. #set (CMAKE_INSTALL_PREFIX "prefix_path")
  38. # Set install name suffix used for directories and gmt executables
  39. # [undefined]:
  40. #set (GMT_INSTALL_NAME_SUFFIX "suffix")
  41. # Install into traditional directory structure. Disable to install a
  42. # distribution type directory structure (doc and share separated) [on]:
  43. #set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
  44. # Install convenience links for GMT modules. Disable to install only the main
  45. # gmt program and access modules as "gmt modulename options" [TRUE]:
  46. #set (GMT_INSTALL_MODULE_LINKS FALSE)
  47. # Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
  48. #set (GMT_INSTALL_RELOCATABLE TRUE)
  49. # ============================================================================
  50. # Advanced configuration begins here. Usually it is not necessary to edit any
  51. # settings below. You should know what you are doing if you do though. Note:
  52. # installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
  53. # path is given.
  54. # ============================================================================
  55. # Set binary installation path [bin]:
  56. #set (GMT_BINDIR "bin")
  57. # Set library installation path [lib or lib64]:
  58. #set (GMT_LIBDIR "lib")
  59. # Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
  60. #set (GMT_INCLUDEDIR "include/gmt")
  61. # Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
  62. #set (GMT_DATADIR "share/gmt")
  63. # Set doc installation path [share/doc or
  64. # share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
  65. #set (GMT_DOCDIR "share/doc/gmt")
  66. # Set manpage installation path [share/man or
  67. # share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
  68. #set (GMT_MANDIR "share/doc/gmt/man")
  69. # Install documentation files from this external location instead of creating
  70. # new PDF and HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
  71. #set (GMT_INSTALL_EXTERNAL_DOC OFF)
  72. # Install manual pages from this external location instead of creating the
  73. # manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
  74. #set (GMT_INSTALL_EXTERNAL_MAN OFF)
  75. ##
  76. ## Section 2: Build dependencies (should only be needed if CMake cannot
  77. ## automatically detect the rights version or path.)
  78. ##
  79. # Set path to GSHHG Shoreline Database [auto]:
  80. #set (GSHHG_ROOT "gshhg_path")
  81. # Copy GSHHG files to $/coast [FALSE]:
  82. #set (COPY_GSHHG TRUE)
  83. # Set path to DCW Digital Chart of the World for GMT [auto]:
  84. #set (DCW_ROOT "dcw-gmt_path")
  85. # Copy DCW files to $/dcw [FALSE]:
  86. #set (COPY_DCW TRUE)
  87. # Set location of NetCDF (can be root directory, path to header file or path
  88. # to nc-config) [auto]:
  89. #set (NETCDF_ROOT "netcdf_install_prefix")
  90. # Set location of GDAL (can be root directory, path to header file or path to
  91. # gdal-config) [auto]:
  92. #set (GDAL_ROOT "gdal_install_prefix")
  93. # Set location of PCRE (can be root directory, path to header file or path to
  94. # pcre-config) [auto]:
  95. #set (PCRE_ROOT "pcre_install_prefix")
  96. # Set location of single precision FFTW (can be root directory or path to
  97. # header file) [auto]:
  98. #set (FFTW3_ROOT "fftw_install_prefix")
  99. # Set location of ZLIB (can be root directory or path to header file) [auto]:
  100. #set (ZLIB_ROOT "zlib_install_prefix")
  101. # Set location of GLIB component gthread [auto]. This is an optional (and
  102. # experimental) option which you need to enable:
  103. #set (GMT_USE_THREADS TRUE)
  104. # If pkg-config is not installed (e.g. on Windows) you need to specify these:
  105. #set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
  106. #set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
  107. # Set location of pthreads-win32 (only Windows); needs GMT_USE_THREADS:
  108. #set (PTHREADS_WIN32_ROOT c:/prefix/of/pthreads-win32)
  109. #set (GMT_USE_THREADS TRUE)
  110. # Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
  111. #set (LAPACK_LIBRARY "V:/lapack-3.5.0/build/lib/liblapack.lib")
  112. ##
  113. ## Section 3: GMT features
  114. ##
  115. # Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
  116. # redistributed under the terms of the GPL or LGPL such as Shewchuk's
  117. # triangulation (valid values are GPL, LGPL and off) [off]:
  118. #set (LICENSE_RESTRICTED GPL)
  119. # Configure default units (possible values are SI and US) [SI]:
  120. #set (UNITS "US")
  121. # Enable building of shared libraries [TRUE] (disable to use static libraries;
  122. # not recommended; on non-x86 architectures uncomment the next option as well):
  123. #set (BUILD_SHARED_LIBS FALSE)
  124. # Create position independent code on all targets [auto] (needed for static
  125. # build on non-x86:
  126. #set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
  127. # Build GMT shared lib with supplemental modules [TRUE]:
  128. #set (BUILD_SUPPLEMENTS FALSE)
  129. # Build/Install GMT Developer include files [FALSE]:
  130. # This installs the extra include files and configured files needed by 3rd-party
  131. # developers. Until we build a separate gmt-devel we include them in the main
  132. # Distribution.
  133. set (BUILD_DEVELOPER TRUE)
  134. ##
  135. ## Section 4: Advanced tweaking
  136. ##
  137. #
  138. # Testing and development
  139. #
  140. # Enable running examples/tests with "ctest" or "make check" (out-of-source).
  141. # Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
  142. # line.
  143. #enable_testing()
  144. #set (DO_EXAMPLES TRUE)
  145. #set (DO_TESTS TRUE)
  146. # Number of parallel test jobs with "make check":
  147. #set (N_TEST_JOBS 4)
  148. # Location of optional third-party files used by test suite available from
  149. # svn://gmtserver.soest.hawaii.edu/gmt-data [${GMT_SOURCE_DIR}/test/data]
  150. #set (GMT_TEST_DATA "test_data_path")
  151. # Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
  152. # installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
  153. # for testing [OFF]:
  154. #set (SUPPORT_EXEC_IN_BINARY_DIR ON)
  155. # List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
  156. # that link against the full gmt libs (not just the API; for building codes
  157. # that only need the GMT API, see the gmt-custom project).
  158. #set (EXTRA_BUILD_DIRS apidemo)
  159. # Directory in which to install the release sources per default
  160. # [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
  161. #set (GMT_RELEASE_PREFIX "release-src-prefix")
  162. # If set to false, image conversion from PS images to PNG and PDF does
  163. # not depend on the gmt binary target. Note: "make gmt" is then required
  164. # before docs_depends [TRUE].
  165. #set (GMT_DOCS_DEPEND_ON_GMT FALSE)
  166. #
  167. # Debugging
  168. #
  169. # Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
  170. # [Release]:
  171. #set (CMAKE_BUILD_TYPE Debug)
  172. # Extra debugging for developers:
  173. #if ( CMAKE_GENERATOR STREQUAL "Xcode" )
  174. ## So Xcode can find the supplemental plug-ins during debug sessions
  175. # add_definitions(-DXCODER)
  176. # message("Add Xcode definition for GMT")
  177. #endif()
  178. #add_definitions(-DDEBUG)
  179. #add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
  180. #set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
  181. #set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") # extra warnings
  182. #set (CMAKE_C_FLAGS_DEBUG -ggdb3) # gdb debugging symbols
  183. #set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized") # check uninitialized variables
  184. #set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE) # debug link dependencies
  185. #
  186. # System specific tweaks
  187. #
  188. # This is for GCC on Solaris to avoid "relocations remain against allocatable
  189. # but non-writable sections" problems:
  190. #set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
  191. # This may be needed to enable strdup and extended math functions with GCC and
  192. # Suncc on Solaris:
  193. #set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
  194. # Do not warn when building with Windows SDK or Visual Studio Express:
  195. #set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
  196. # Manually select runtime library when compiling with Windows SDK or Visual
  197. # Studio Express:
  198. #set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
  199. # If your NetCDF library is static (not recommended, applies to Windows only)
  200. #set (NETCDF_STATIC TRUE)
  201. # If want to rename the DLLs to something else than the default (e.g. to
  202. # append the bitness - Windows only)
  203. # WARNING: if using this option it is mandatory that the suffix starts with an underscore.
  204. #if (WIN32)
  205. # set (BITAGE 32)
  206. # # Detect if we are building a 32 or 64 bits version
  207. # if (CMAKE_SIZEOF_VOID_P EQUAL 8)
  208. # set (BITAGE 64)
  209. # endif ()
  210. # set (GMT_DLL_RENAME gmt_w${BITAGE})
  211. # set (PSL_DLL_RENAME psl_w${BITAGE})
  212. #endif(WIN32)
  213. # On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
  214. #if(MSVC11)
  215. # add_definitions(/D_ALLOW_KEYWORD_MACROS)
  216. #endif(MSVC11)
  217. # vim: textwidth=78 noexpandtab tabstop=2 softtabstop=2 shiftwidth=2
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...