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.6 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
  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. if (SPHINX_FOUND)
  18. # Include all PNG and JPG files
  19. file (GLOB _fig_fig RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
  20. "${CMAKE_CURRENT_SOURCE_DIR}/*.png"
  21. "${CMAKE_CURRENT_SOURCE_DIR}/*.jpg")
  22. # Remove some unused figures
  23. list (REMOVE_ITEM _fig_fig
  24. formatting.png highres.png noantialias.png withantialias.png)
  25. # Copy figures without converting
  26. set (_fig_fig_out)
  27. foreach (_fig ${_fig_fig})
  28. add_custom_command (OUTPUT ${RST_BINARY_DIR}/_images/${_fig}
  29. COMMAND ${CMAKE_COMMAND} -E copy_if_different
  30. ${CMAKE_CURRENT_SOURCE_DIR}/${_fig} ${RST_BINARY_DIR}/_images/${_fig}
  31. DEPENDS ${_fig} _docs_rst_mkdir_images)
  32. list (APPEND _fig_fig_out ${RST_BINARY_DIR}/_images/${_fig})
  33. endforeach (_fig ${_fig_fig})
  34. # Add build target
  35. add_custom_target (_docs_copy_fig DEPENDS ${_fig_fig_out})
  36. add_depend_to_target (docs_depends _docs_copy_fig)
  37. endif (SPHINX_FOUND)
Tip!

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

Comments

Loading...