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 2.1 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
  1. #
  2. #
  3. # Copyright (c) 1991-2020 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. include (GmtHelperMacros)
  18. # Install license files
  19. if (NOT LICENSE_RESTRICTED STREQUAL GPL)
  20. install (FILES
  21. ${COPYING_LGPL}
  22. DESTINATION ${GMT_DOCDIR}/copying
  23. COMPONENT Runtime)
  24. endif (NOT LICENSE_RESTRICTED STREQUAL GPL)
  25. install (FILES
  26. ${GMT_SOURCE_DIR}/LICENSE.TXT
  27. ${COPYING_GPL}
  28. ${GMT_EXTRA_LICENSE_FILES}
  29. DESTINATION ${GMT_DOCDIR}/copying
  30. COMPONENT Runtime)
  31. # reST documentation
  32. add_subdirectory (rst)
  33. set (RST_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/rst/source)
  34. set (RST_STATIC_DIR ${CMAKE_CURRENT_BINARY_DIR}/rst/_static)
  35. add_subdirectory (fig)
  36. # Add tests and make verbatim copies from scripts
  37. add_subdirectory (scripts)
  38. add_subdirectory (examples)
  39. # Optimize images for HTML documentation
  40. find_program (PNGQUANT pngquant)
  41. if (PNGQUANT)
  42. add_custom_target (optimize_images
  43. COMMAND ${PNGQUANT} --strip --force --ext .png ${RST_BINARY_DIR}/_images/*.png
  44. )
  45. add_dependencies (optimize_images docs_depends)
  46. add_depend_to_target (gmt_release optimize_images)
  47. endif (PNGQUANT)
  48. # Install target for examples
  49. if (NOT WIN32)
  50. set (_exclude_bat "*.bat") # Do not install .bat files
  51. endif (NOT WIN32)
  52. install (DIRECTORY examples
  53. DESTINATION ${GMT_DOCDIR}
  54. COMPONENT Documentation
  55. USE_SOURCE_PERMISSIONS
  56. PATTERN "${_exclude_bat}" EXCLUDE
  57. PATTERN "CMakeLists.txt" EXCLUDE
  58. PATTERN "gmt.history" EXCLUDE
  59. PATTERN ".DS_Store" EXCLUDE
  60. REGEX "[.](cmake|in|ps)$" EXCLUDE)
Tip!

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

Comments

Loading...