# Custom module icons in SlicerCustomAppTemplateApp missing

**URL:** https://discourse.slicer.org/t/custom-module-icons-in-slicercustomapptemplateapp-missing/34037
**Category:** Development
**Created:** [January 30, 2024, 6:24am UTC](https://discourse.slicer.org/t/custom-module-icons-in-slicercustomapptemplateapp-missing/34037 "2024-01-30T06:24:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![apparrilla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/apparrilla/32/9230_2.png) [@apparrilla](https://discourse.slicer.org/u/apparrilla)
#### Post date: [January 30, 2024, 6:24am UTC](https://discourse.slicer.org/t/custom-module-icons-in-slicercustomapptemplateapp-missing/34037/1 "2024-01-30T06:24:50Z")

</div>

I´ve build a SlicerCustomAppTemplateApp with a custom module in Win11.

In Resouces/Icon folder there are many other icons.

I set Slicer\_EXTENSION\_SOURCE\_DIRS ${SlicerCustomAppTemplate\_SOURCE\_DIR}/Modules/Scripted/MyCustomModule  
but only the main icon was added to the project folder.

Is there any other way to add extra resources to SlicerCustomAppTemplateApp?

Thanks on advance!

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [January 30, 2024, 3:00pm UTC](https://discourse.slicer.org/t/custom-module-icons-in-slicercustomapptemplateapp-missing/34037/2 "2024-01-30T15:00:56Z")

</div>

The CMakeLists.txt for your given scripted loadable module is where you can define python resources to include in the package.

See for example how the Screen Capture module specifies to include the module icon and another image file for use by the module:

> <https://github.com/Slicer/Slicer/blob/88d9aab666f48ced72e4696cb1bb1a998f5da040/Modules/Scripted/ScreenCapture/CMakeLists.txt#L9-L12>

---

<div class="post-metadata">

### Author: ![apparrilla](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/apparrilla/32/9230_2.png) [@apparrilla](https://discourse.slicer.org/u/apparrilla)
#### Post date: [January 30, 2024, 9:25pm UTC](https://discourse.slicer.org/t/custom-module-icons-in-slicercustomapptemplateapp-missing/34037/3 "2024-01-30T21:25:03Z")

</div>

I need to improve my Cmake skills…  
Thank you James!!!
