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

CMakeLists.txt 1.9 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
  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
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; version 3 or any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU Lesser General Public License for more details.
  14. #
  15. # Contact info: www.generic-mapping-tools.org
  16. #-------------------------------------------------------------------------------
  17. #
  18. # share/CMakeLists.txt
  19. #
  20. set (_gmt_share_dirs cpt custom localization mgd77 mgg spotter themes x2sys)
  21. # install target for data
  22. install (DIRECTORY ${_gmt_share_dirs}
  23. DESTINATION ${GMT_DATADIR}
  24. COMPONENT Runtime
  25. PATTERN "CMakeLists.txt" EXCLUDE
  26. PATTERN ".DS_Store" EXCLUDE
  27. REGEX "[.](cmake|in)$" EXCLUDE)
  28. # only attempt to install shorelines when requested and path is known
  29. if (GSHHG_PATH AND COPY_GSHHG)
  30. install (DIRECTORY ${GSHHG_PATH}/
  31. DESTINATION ${GMT_DATADIR}/coast
  32. COMPONENT GSHHG)
  33. # location must be blank in gmt.conf
  34. set (GSHHG_INSTALL_PATH)
  35. # create coastline.conf which is needed for in-build-dir ctest
  36. configure_file (coastline.conf.in coastline.conf @ONLY)
  37. else (GSHHG_PATH AND COPY_GSHHG)
  38. # set installed location
  39. set (GSHHG_INSTALL_PATH ${GSHHG_PATH})
  40. endif (GSHHG_PATH AND COPY_GSHHG)
  41. # only attempt to install DCW file when requested and path is known
  42. if (DCW_PATH AND COPY_DCW)
  43. install (DIRECTORY ${DCW_PATH}/
  44. DESTINATION ${GMT_DATADIR}/dcw
  45. COMPONENT DCW)
  46. # location must be blank in gmt.conf
  47. set (DCW_INSTALL_PATH)
  48. else (DCW_PATH AND COPY_DCW)
  49. # set installed location
  50. set (DCW_INSTALL_PATH ${DCW_PATH})
  51. endif (DCW_PATH AND COPY_DCW)
  52. # add subtrees
  53. add_subdirectory (tools)
Tip!

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

Comments

Loading...