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

ConfigUserAdvancedTemplate.cmake 11 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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
  1. #
  2. #
  3. # Copyright (c) 1991-2021 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
  4. # See LICENSE.TXT file for copying and redistribution conditions.
  5. #
  6. # This program is free software; you can redistribute it and/or modify it
  7. # under the terms of the GNU Lesser General Public License as published by the
  8. # Free Software Foundation; version 3 or any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful, but WITHOUT
  11. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
  13. # for more details.
  14. #
  15. # Contact info: www.generic-mapping-tools.org
  16. # ----------------------------------------------------------------------------
  17. # INSTRUCTIONS TO USERS:
  18. #
  19. # 1. Copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake' and make any edits
  20. # related to install directory, the whereabouts of GSHHS, DCW.
  21. # 2. If you are an advanced user who wishes to tinker with the more advanced
  22. # settings, then copy 'ConfigUserAdvancedTemplate.cmake' to 'ConfigUserAdvanced.cmake',
  23. # explore and make changes to your ConfigUserAdvanced.cmake file
  24. # to override variables in 'ConfigDefault.cmake' on a per-user basis.
  25. # 3. Follow the rest of the installation instructions in BUILDING.md.
  26. #
  27. # 'ConfigUser.cmake' and 'ConfigUserAdvanced.cmake' are not version controlled
  28. # (currently listed in .gitignore).
  29. #
  30. # Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
  31. # ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
  32. # "False", "off", "no", and "something-NotFound" are all false). Other values
  33. # are true. Thus it does not matter whether you use TRUE and FALSE, ON and
  34. # OFF, or YES and NO for your booleans.
  35. ##
  36. ## Section 1: Installation paths
  37. ##
  38. # Set install name suffix used for directories and gmt executables [undefined]:
  39. #set (GMT_INSTALL_NAME_SUFFIX "suffix")
  40. # Install into traditional directory structure. Disable to install a
  41. # distribution type directory structure (doc and share separated) [on]:
  42. #set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
  43. # Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
  44. #set (GMT_INSTALL_RELOCATABLE TRUE)
  45. # Exclude optional GDAL, GEOS ,PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
  46. #set (GMT_EXCLUDE_GDAL TRUE)
  47. #set (GMT_EXCLUDE_GEOS TRUE)
  48. #set (GMT_EXCLUDE_PCRE TRUE)
  49. #set (GMT_EXCLUDE_PCRE2 TRUE)
  50. #set (GMT_EXCLUDE_FFTW3 TRUE)
  51. #set (GMT_EXCLUDE_LAPACK TRUE)
  52. #set (GMT_EXCLUDE_BLAS TRUE)
  53. #set (GMT_EXCLUDE_ZLIB TRUE)
  54. # ============================================================================
  55. # Advanced configuration begins here. Usually it is not necessary to edit any
  56. # settings below. You should know what you are doing if you do though. Note:
  57. # installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
  58. # path is given.
  59. # ============================================================================
  60. # Set binary installation path [bin]:
  61. #set (GMT_BINDIR "bin")
  62. # Set library installation path [lib or lib64]:
  63. #set (GMT_LIBDIR "lib")
  64. # Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
  65. #set (GMT_INCLUDEDIR "include/gmt")
  66. # Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
  67. #set (GMT_DATADIR "share/gmt")
  68. # Set doc installation path [share/doc or share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
  69. #set (GMT_DOCDIR "share/doc/gmt")
  70. # Set manpage installation path [share/man or share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
  71. #set (GMT_MANDIR "share/doc/gmt/man")
  72. # Install documentation files from this external location instead of creating
  73. # new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
  74. #set (GMT_INSTALL_EXTERNAL_DOC OFF)
  75. # Install manual pages from this external location instead of creating the
  76. # manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
  77. #set (GMT_INSTALL_EXTERNAL_MAN OFF)
  78. ##
  79. ## Section 2: Build dependencies (should only be needed if CMake cannot
  80. ## automatically detect the rights version or path.)
  81. ##
  82. # Set URL to GMT Data server [auto]:
  83. #set (GMT_DATA_SERVER "data_server_url")
  84. # Set location of NetCDF (can be root directory, path to header file or path
  85. # to nc-config) [auto]:
  86. #set (NETCDF_ROOT "netcdf_install_prefix")
  87. # Set location of GDAL (can be root directory, path to header file or path to
  88. # gdal-config) [auto]:
  89. #set (GDAL_ROOT "gdal_install_prefix")
  90. # Set location of GEOS (can be root directory, path to header file or path to
  91. # geos-config) [auto]:
  92. #set (GEOS_ROOT "geos_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. # Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
  97. # pcre2-config) [auto]:
  98. #set (PCRE2_ROOT "pcre2_install_prefix")
  99. # Set location of single precision FFTW (can be root directory or path to
  100. # header file) [auto]:
  101. #set (FFTW3_ROOT "fftw_install_prefix")
  102. # Set location of ZLIB (can be root directory or path to header file) [auto]:
  103. #set (ZLIB_ROOT "zlib_install_prefix")
  104. # Set location of CURL (can be root directory or path to header file) [auto]:
  105. #set (CURL_ROOT "curl_install_prefix")
  106. # Set location of GLIB component gthread [auto]. This is an optional (and
  107. # experimental) option which you need to enable:
  108. #set (GMT_USE_THREADS TRUE)
  109. # If pkg-config is not installed (e.g. on Windows) you need to specify these:
  110. #set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
  111. #set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
  112. # Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
  113. #set (LAPACK_LIBRARY "V:/lapack-3.5.0/build/lib/liblapack.lib")
  114. #set (BLAS_LIBRARY "V:/lapack-3.5.0/build/lib/libblas.lib")
  115. ##
  116. ## Section 3: GMT features
  117. ##
  118. # Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
  119. # redistributed under the terms of the GPL or LGPL such as Shewchuk's
  120. # triangulation (valid values are GPL, LGPL and off) [off]:
  121. #set (LICENSE_RESTRICTED GPL)
  122. # Allow building of OpenMP if compiler supports it
  123. #set (GMT_ENABLE_OPENMP TRUE)
  124. # Configure default units (possible values are SI and US) [SI]:
  125. #set (UNITS "US")
  126. # Enable building of shared libraries [TRUE] (disable to use static libraries;
  127. # not recommended; on non-x86 architectures uncomment the next option as well):
  128. # NOTE: currently only support shared libraries
  129. #set (BUILD_SHARED_LIBS FALSE)
  130. # Create position independent code on all targets [auto] (needed for static
  131. # build on non-x86):
  132. #set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
  133. # Build GMT shared lib with supplemental modules [TRUE]:
  134. #set (BUILD_SUPPLEMENTS FALSE)
  135. # Build/Install GMT Developer include files [TRUE]:
  136. # This installs the extra include files and configured files needed by 3rd-party
  137. # developers. Until we build a separate gmt-devel we include them in the main
  138. # Distribution.
  139. #set (BUILD_DEVELOPER FALSE)
  140. ##
  141. ## Section 4: Advanced tweaking
  142. ##
  143. #
  144. # Testing and development
  145. #
  146. # Enable running examples/tests with "ctest" or "make check" (out-of-source).
  147. # Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
  148. # line.
  149. #enable_testing()
  150. #set (DO_EXAMPLES TRUE)
  151. #set (DO_TESTS TRUE)
  152. #set (DO_ANIMATIONS TRUE)
  153. # Number of parallel test jobs with "make check":
  154. #set (N_TEST_JOBS 4)
  155. # Ignore the "GMT_KNOWN_FAILURE" comment in tests to let tests fail normally
  156. # Can only be "ON" or "OFF" in uppercase!
  157. #set (GMT_ENABLE_KNOWN2FAIL OFF)
  158. # Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
  159. # installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
  160. # for testing [OFF]:
  161. #set (SUPPORT_EXEC_IN_BINARY_DIR ON)
  162. # Uncomment the following line to enable running low-level C tests of the API
  163. #set (DO_API_TESTS ON)
  164. # List extra sub-dirs of 'src' with a CMakeLists.txt to build custom modules
  165. # that link against the full gmt libs. (For building codes that only need the GMT API,
  166. # see the https://github.com/GenericMappingTools/custom-supplements project).
  167. # These supplemental modules can be built into separate libraries.
  168. #set (SUPPL_EXTRA_DIRS newsuppl1 newsuppl2 ...)
  169. # Directory in which to install the release sources per default
  170. # [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
  171. #set (GMT_RELEASE_PREFIX "release-src-prefix")
  172. # If set to false, image conversion from PS images to PNG and PDF does
  173. # not depend on the gmt binary target. Note: "make gmt" is then required
  174. # before docs_depends [TRUE].
  175. #set (GMT_DOCS_DEPEND_ON_GMT FALSE)
  176. #
  177. # Debugging
  178. #
  179. # Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel [Release]:
  180. #set (CMAKE_BUILD_TYPE Debug)
  181. # Extra debugging for developers:
  182. #if ( CMAKE_GENERATOR STREQUAL "Xcode" )
  183. # # So Xcode can find the supplemental plug-ins during debug sessions
  184. # add_definitions(-DXCODER) # Handle a debug plugin directory
  185. # add_definitions(-DDEBUG_MODERN) # To set PPID == 0 during Xcode test
  186. # message("Add Xcode definition for GMT")
  187. #endif()
  188. # Uncomment these two statements if you are a developer debugging GMT:
  189. #add_definitions(-DDEBUG)
  190. #add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
  191. #add_definitions(-DUSE_COMMON_LONG_OPTIONS) # Turn on testing of upcoming long-option syntax for common GMT options
  192. #add_definitions(-DUSE_MODULE_LONG_OPTIONS) # Turn on testing of upcoming long-option syntax for module options
  193. #add_definitions(-DEXPORT_GMTLIB) # Turn on to access normally un-exported or static gmtlib functions from external tools
  194. #add_definitions(-DNO_THEMES) # Turn off implementation of GMT_THEME for debugging
  195. #set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement ${CMAKE_C_FLAGS}") # recommended even for release build
  196. #set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") # extra warnings
  197. #set (CMAKE_C_FLAGS_DEBUG -ggdb3) # gdb debugging symbols
  198. #set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE) # debug link dependencies
  199. #if (HAVE_OPENMP)
  200. # set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions") # check uninitialized variables
  201. #else (HAVE_OPENMP)
  202. # set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized") # check uninitialized variables
  203. #endif (HAVE_OPENMP)
  204. #
  205. # System specific tweaks
  206. #
  207. # This is for GCC on Solaris to avoid "relocations remain against allocatable
  208. # but non-writable sections" problems:
  209. #set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
  210. # This may be needed to enable strdup and extended math functions with GCC and
  211. # Suncc on Solaris:
  212. #set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
  213. # Do not warn when building with Windows SDK or Visual Studio Express:
  214. #set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
  215. # Manually select runtime library when compiling with Windows SDK or Visual
  216. # Studio Express:
  217. #set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
  218. # If your NetCDF library is static (not recommended, applies to Windows only)
  219. #set (NETCDF_STATIC TRUE)
  220. # If want to rename the DLLs to something else than the default (e.g. to
  221. # append the bitness - Windows only)
  222. # WARNING: if using this option it is mandatory that the suffix starts with an underscore.
  223. #if (WIN32)
  224. # set (BITAGE 32)
  225. # # Detect if we are building a 32 or 64 bits version
  226. # if (CMAKE_SIZEOF_VOID_P EQUAL 8)
  227. # set (BITAGE 64)
  228. # endif ()
  229. # set (GMT_DLL_RENAME gmt_w${BITAGE})
  230. # set (PSL_DLL_RENAME psl_w${BITAGE})
  231. # set (SUPP_DLL_RENAME supplements_w${BITAGE})
  232. #endif(WIN32)
  233. # On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
  234. #if(MSVC11)
  235. # add_definitions(/D_ALLOW_KEYWORD_MACROS)
  236. #endif(MSVC11)
Tip!

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

Comments

Loading...