# Are there any examples of integrating conan into 3d slicer extension?

**URL:** <https://discourse.slicer.org/t/are-there-any-examples-of-integrating-conan-into-3d-slicer-extension/29895>\
**Category:** Support\
**Tags:** cmake\
**Created:** [June 7, 2023, 12:44pm UTC](https://discourse.slicer.org/t/are-there-any-examples-of-integrating-conan-into-3d-slicer-extension/29895 "2023-06-07T12:44:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![james94g](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@james94g](https://discourse.slicer.org/u/james94g)\
**Post date:** [June 7, 2023, 12:44pm UTC](https://discourse.slicer.org/t/are-there-any-examples-of-integrating-conan-into-3d-slicer-extension/29895/1 "2023-06-07T12:44:59Z")

</div>

Operating system: Ubuntu 22.04  
Slicer version: 5.3.0  
Expected behavior: After successfully building custom extension with conan cmake, I expect my modified OpenIGTLinkIF module to show up in modules.  
Actual behavior: However, after building my modified version of SlicerOpenIGTLink and its OpenIGTLinkIF module, it doesn’t show up in 3D Slicer.

Has anyone built a custom extension with conan cmake? Any help or guidance would be greatly appreciated as I am aiming to use 3D slicer for my master thesis on AI stroke diagnosis.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 7, 2023, 2:36pm UTC](https://discourse.slicer.org/t/are-there-any-examples-of-integrating-conan-into-3d-slicer-extension/29895/2 "2023-06-07T14:36:16Z")

</div>

The conan option sounds interesting, but I don’t know that anyone has used it before. Best to stick with the documented toolchain to make sure things are working, and then try out new tools

---

<div class="post-metadata">

**Author:** ![james94g](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@james94g](https://discourse.slicer.org/u/james94g)\
**Post date:** [June 7, 2023, 10:00pm UTC](https://discourse.slicer.org/t/are-there-any-examples-of-integrating-conan-into-3d-slicer-extension/29895/3 "2023-06-07T22:00:26Z")

</div>

@pieper since I need to use conan for my project, I could create a tutorial or document how to do it when I get it working and share it with the Slicer Community. Any suggestions on contributing to 3D Slicer?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 7, 2023, 10:04pm UTC](https://discourse.slicer.org/t/are-there-any-examples-of-integrating-conan-into-3d-slicer-extension/29895/4 "2023-06-07T22:04:48Z")

</div>

It would be great if you could make such a contribution. Probably a PR to add info to [the extension instructions](https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html) would be good. I’m not familiar with conan, but it sounds like something we might be able to use other places as well.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 7, 2023, 10:27pm UTC](https://discourse.slicer.org/t/are-there-any-examples-of-integrating-conan-into-3d-slicer-extension/29895/5 "2023-06-07T22:27:50Z")

</div>

Can you write a bit more about conan? What are the advantages compared to simply using CMake? What makes it required for you to use conan?
