# CMAKE in Python script (slicer extension)

**URL:** https://discourse.slicer.org/t/cmake-in-python-script-slicer-extension/24690
**Category:** Support
**Created:** [August 9, 2022, 11:24am UTC](https://discourse.slicer.org/t/cmake-in-python-script-slicer-extension/24690 "2022-08-09T11:24:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Thu\_n\_Chu\_th](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/thu_n_chu_th/32/9542_2.png) [@Thu\_n\_Chu\_th](https://discourse.slicer.org/u/Thu_n_Chu_th)
#### Post date: [August 9, 2022, 11:24am UTC](https://discourse.slicer.org/t/cmake-in-python-script-slicer-extension/24690/1 "2022-08-09T11:24:17Z")

</div>

hello!  
i’m building python script extension object.  
but when I read document of python extension in slicer document, I look slicer require use Cmake to create .txt file in extension folder. but I still know role of cmake.txt in slicer extension.  
when I down some code about python extension without cmake.txt file , it didn’t active.  
can you explain role of Cmake in python extension help me?

thankyou so much!!

---

<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: [August 9, 2022, 1:43pm UTC](https://discourse.slicer.org/t/cmake-in-python-script-slicer-extension/24690/2 "2022-08-09T13:43:44Z")

</div>

This post may help: [Pure python extension: Packaging w/o CMAKE/Visual Studio, etc?](https://discourse.slicer.org/t/pure-python-extension-packaging-w-o-cmake-visual-studio-etc/10169)
