# Extension name vs repo name

**URL:** <https://discourse.slicer.org/t/extension-name-vs-repo-name/27507>\
**Category:** Support\
**Created:** [January 27, 2023, 9:19pm UTC](https://discourse.slicer.org/t/extension-name-vs-repo-name/27507 "2023-01-27T21:19:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [January 27, 2023, 9:19pm UTC](https://discourse.slicer.org/t/extension-name-vs-repo-name/27507/1 "2023-01-27T21:19:46Z")

</div>

I am submitting a new extension: [Add MEMOS extension by smrolfe · Pull Request #1908 · Slicer/ExtensionsIndex · GitHub](https://github.com/Slicer/ExtensionsIndex/pull/1908)  
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”?

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [January 27, 2023, 10:30pm UTC](https://discourse.slicer.org/t/extension-name-vs-repo-name/27507/2 "2023-01-27T22:30:33Z")

</div>

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](https://github.com/SlicerMorph/SlicerMEMOS/blob/24a02f686adfd7542df3fa14a97097723302bc8c/CMakeLists.txt#L3) 

2. [https://github.com/Slicer/Slicer/blob/38056565bb247c7affb80fdd0d861197eaa50a31/CMake/UseSlicer.cmake.in#L56-L78](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](https://github.com/Slicer/Slicer/blob/38056565bb247c7affb80fdd0d861197eaa50a31/Extensions/CMake/SlicerExtensionPackageAndUploadTarget.cmake#L278-L295)
