Guest User

Extension configuration

a guest
Jul 20th, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 5.56 KB | None | 0 0
  1. # DebuggingTools
  2. # Extension for 3D Slicer containing various tools for module development and debugging.
  3. #
  4. # Included modules:
  5. #
  6. #     Python Debugger (in category: Developer Tools): Visual debugging
  7. #     (setting breakpoints, execute code step-by-step, view variables,
  8. #     stack, etc.) of Python scripts in Slicer using PyCharm, Visual
  9. #     Studio Code, Eclipse, etc.
  10. #
  11. #     Node modified statistics (in category: Developer Tools): Module
  12. #     for collecting statistics on timing of node Modified events. It
  13. #     is useful for estimating refresh rate when a live data stream or
  14. #     temporal data sequence is visualized.
  15. #
  16. #     Node info: Browse nodes in the Slicer scene, find referenced and
  17. #     referencing nodes, create dockable widgets to display content of
  18. #     selected nodes.
  19. #
  20. # Authors: Andras Lasso (PerkLab, Queen's University), Mikael Brudfors
  21. # (Laboratorio de Imagen Medica, Hospital Gregorio Maranon).
  22.  
  23. set(extension_name "DebuggingTools")
  24. set(${extension_name}_SOURCE_DIR "${CMAKE_BINARY_DIR}/${extension_name}")
  25. FetchContent_Populate(${extension_name}
  26.  SOURCE_DIR     ${${extension_name}_SOURCE_DIR}
  27.  GIT_REPOSITORY ${EP_GIT_PROTOCOL}://github.com/SlicerRt/SlicerDebuggingTools.git
  28.  GIT_TAG        8bb556a
  29.  GIT_PROGRESS   1
  30.  QUIET
  31.  )
  32. message(STATUS "Remote - ${extension_name} [OK]")
  33. list(APPEND Slicer_EXTENSION_SOURCE_DIRS ${${extension_name}_SOURCE_DIR})
  34.  
  35. # DeveloperToolsForExtensions
  36. #
  37. # This repository contains 3D Slicer extensions that offers different tools to help developers when they develop Slicer extensions:
  38. #
  39. #     Developer Tools For Extensions: It allows one to manually
  40. #     install extensions from an archive (*.zip or *.tar.gz). These
  41. #     archives can either be created locally when one creates their
  42. #     own extensions (this tools can help the developer to verify that
  43. #     their extension is correctly packaged). It can also be
  44. #     convenient to distribute your Slicer extensions on your own
  45. #     website, or privately. It also allows to directly load a
  46. #     scripted module while Slicer is already running.
  47. #
  48. #     Extension Download Statistics: It allows developers to know how
  49. #     many times their extensions have been downloaded.
  50.  
  51. set(extension_name "DeveloperToolsForExtensions")
  52. set(${extension_name}_SOURCE_DIR "${CMAKE_BINARY_DIR}/${extension_name}")
  53. FetchContent_Populate(${extension_name}
  54.  SOURCE_DIR     ${${extension_name}_SOURCE_DIR}
  55.  GIT_REPOSITORY ${EP_GIT_PROTOCOL}://github.com/Slicer/SlicerDeveloperToolsForExtensions.git
  56.  GIT_TAG        1a66fa3
  57.  GIT_PROGRESS   1
  58.  QUIET
  59.  )
  60. message(STATUS "Remote - ${extension_name} [OK]")
  61. list(APPEND Slicer_EXTENSION_SOURCE_DIRS ${${extension_name}_SOURCE_DIR})
  62.  
  63. # ModelClip
  64. #
  65. # An extension module designated to clip models with multiple planes.
  66.  
  67. set(extension_name "ModelClip")
  68. set(${extension_name}_SOURCE_DIR "${CMAKE_BINARY_DIR}/${extension_name}")
  69. FetchContent_Populate(${extension_name}
  70.  SOURCE_DIR     ${${extension_name}_SOURCE_DIR}
  71.  GIT_REPOSITORY ${EP_GIT_PROTOCOL}://github.com/jamesobutler/ModelClip.git
  72.  GIT_TAG        804eccc
  73.  GIT_PROGRESS   1
  74.  QUIET
  75.  )
  76. message(STATUS "Remote - ${extension_name} [OK]")
  77. list(APPEND Slicer_EXTENSION_SOURCE_DIRS ${${extension_name}_SOURCE_DIR})
  78.  
  79. # SegmentEditorExtraEffects
  80. #
  81. # Experimental effects for Segment Editor in 3D Slicer.
  82.  
  83. set(extension_name "SegmentEditorExtraEffects")
  84. set(${extension_name}_SOURCE_DIR "${CMAKE_BINARY_DIR}/${extension_name}")
  85. FetchContent_Populate(${extension_name}
  86.  SOURCE_DIR     ${${extension_name}_SOURCE_DIR}
  87.  GIT_REPOSITORY ${EP_GIT_PROTOCOL}://github.com/lassoan/SlicerSegmentEditorExtraEffects
  88.  GIT_TAG        f43df35
  89.  GIT_PROGRESS   1
  90.  QUIET
  91.  )
  92. message(STATUS "Remote - ${extension_name} [OK]")
  93. list(APPEND Slicer_EXTENSION_SOURCE_DIRS ${${extension_name}_SOURCE_DIR})
  94.  
  95. # SlicerRT
  96. #
  97. # used by SegmentRegistration
  98.  
  99. set(extension_name "SlicerRT")
  100. set(${extension_name}_SOURCE_DIR "${CMAKE_BINARY_DIR}/${extension_name}")
  101. FetchContent_Populate(${extension_name}
  102.  SOURCE_DIR     ${${extension_name}_SOURCE_DIR}
  103.  GIT_REPOSITORY ${EP_GIT_PROTOCOL}://github.com/SlicerRt/SlicerRT.git
  104.  GIT_TAG        907ef2e
  105.  GIT_PROGRESS   1
  106.  QUIET
  107.  )
  108. message(STATUS "Remote - ${extension_name} [OK]")
  109. list(APPEND Slicer_EXTENSION_SOURCE_DIRS ${${extension_name}_SOURCE_DIR})
  110.  
  111. # SlicerProstate
  112. #
  113. # used by SegmentRegistration (contains DistanceMapBasedRegistration)
  114.  
  115. set(extension_name "SlicerProstate")
  116. set(${extension_name}_SOURCE_DIR "${CMAKE_BINARY_DIR}/${extension_name}")
  117. FetchContent_Populate(${extension_name}
  118.  SOURCE_DIR     ${${extension_name}_SOURCE_DIR}
  119.  GIT_REPOSITORY ${EP_GIT_PROTOCOL}://github.com/SlicerProstate/SlicerProstate.git
  120.  GIT_TAG        6337a14
  121.  GIT_PROGRESS   1
  122.  QUIET
  123.  )
  124. message(STATUS "Remote - ${extension_name} [OK]")
  125. list(APPEND Slicer_EXTENSION_SOURCE_DIRS ${${extension_name}_SOURCE_DIR})
  126.  
  127. # SegmentRegistration
  128. #
  129. # 3D Slicer extension for segment registration (aka fusion, contour
  130. # propagation).  The registration step uses the Distance Map Based
  131. # Registration module
  132.  
  133. set(extension_name "SegmentRegistration")
  134. set(${extension_name}_SOURCE_DIR "${CMAKE_BINARY_DIR}/${extension_name}")
  135. FetchContent_Populate(${extension_name}
  136.  SOURCE_DIR     ${${extension_name}_SOURCE_DIR}
  137.  GIT_REPOSITORY ${EP_GIT_PROTOCOL}://github.com/SlicerRt/SegmentRegistration.git
  138.  GIT_TAG        4b19e2c
  139.  GIT_PROGRESS   1
  140.  QUIET
  141.  )
  142. message(STATUS "Remote - ${extension_name} [OK]")
  143. list(APPEND Slicer_EXTENSION_SOURCE_DIRS ${${extension_name}_SOURCE_DIR})
  144.  
  145. # Add Slicer sources
  146. add_subdirectory(${slicersources_SOURCE_DIR} ${slicersources_BINARY_DIR})
  147.  
Add Comment
Please, Sign In to add comment