Slicer-SuperBuild-Debug

$ mkdir MyExtension-debug
$ cd MyExtension-debug
$ cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DSlicer_DIR:PATH=/path/to/Slicer-SuperBuild-Debug/Slicer-build ../MyExtension
$ make

Here I cannot find Slicer-SuperBuild-Debug in my Slicer package, I just downloaded Slicer before, should I build it? If so, is there some tutorial?
Best wishes,
Zhang Kening

To build any extension with C++ code you need to also have built Slicer on your machine (not just downloaded a binary).

https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/index.html

Sorry I only use Python to form my extension, does that means I also nedd C++?

Sorry I only use Python to form my extension, does that means I also nedd C++?

To elaborate on @pieper answer, it is not required to build Slicer if you intend to only write a Slicer module using Python.

Reading the Extensions / Create an extension page should be informative.

It will lead you to use the ExtensionWizard available in the Slicer package you download from https://download.slicer.org

When adding a module, simply select scripted and start developing :rocket:

I already use Wizard to create a extension, but now I want to try it by extension manager, may be try it offline first, which step I should move to confuses me a lot. Thank u very much.