Extension name vs repo name

I am submitting a new extension: Add MEMOS extension by smrolfe · Pull Request #1908 · Slicer/ExtensionsIndex · GitHub
and would like to understand how the extension names are set in the catalog.

I would like the display name of the extension to be “MEMOS”, and have named to repo to “SlicerMEMOS” according to the guidelines. If the extension description file I submitted is “MEMOS.s4ext”, will the extension catalog show “MEMOS”?

The extension name is indeed MEMOS

The extension name is derived from the project name set in the CMakeLists.txt.

Details

This is confirmed by reviewing the project name defined in the top-level CMakeLists.txt [1] using project(MEMOS).

Indeed, the project name is then used by CMake code associated with include(${Slicer_USE_FILE}) [2] to set the variable EXTENSION_NAME.

Itself used to define the extension name used [3] to upload the package on the server.


  1. https://github.com/SlicerMorph/SlicerMEMOS/blob/24a02f686adfd7542df3fa14a97097723302bc8c/CMakeLists.txt#L3 ↩︎

  2. https://github.com/Slicer/Slicer/blob/38056565bb247c7affb80fdd0d861197eaa50a31/CMake/UseSlicer.cmake.in#L56-L78 ↩︎

  3. https://github.com/Slicer/Slicer/blob/38056565bb247c7affb80fdd0d861197eaa50a31/Extensions/CMake/SlicerExtensionPackageAndUploadTarget.cmake#L278-L295 ↩︎

1 Like