# How to build ImageRegistration8 example with ITK-WASM?

**URL:** <https://discourse.itk.org/t/how-to-build-imageregistration8-example-with-itk-wasm/5800>\
**Category:** Engineering\
**Tags:** registration, itk-wasm\
**Created:** [March 14, 2023, 10:24am UTC](https://discourse.itk.org/t/how-to-build-imageregistration8-example-with-itk-wasm/5800 "2023-03-14T10:24:06Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)\
**Post date:** [March 15, 2023, 4:56pm UTC](https://discourse.itk.org/t/how-to-build-imageregistration8-example-with-itk-wasm/5800/12 "2023-03-15T16:56:52Z")

</div>

> [@David\_SAMSONOFF](#):
>
> [CMakeLists.txt](https://discourse.itk.org/uploads/short-url/yuuyNeocNfXi18l3DfmfuUdnTyr.txt)

The proper solution is to list ALL the dependent modules in the list. When compiling programs for the web, we should be careful about not including unnecessary libraries.

Enabling entire groups in your ITK build is not overly helpful in identifying the exact dependent module. [WhatModulesITK.py](https://github.com/InsightSoftwareConsortium/ITK/blob/master/Utilities/Maintenance/WhatModulesITK.py) script should be helpful with that. Also take a look at this [thread](https://discourse.itk.org/t/trimming-down-itk-build-to-just-used-parts/1995).

---

_[View the full topic](https://discourse.itk.org/t/how-to-build-imageregistration8-example-with-itk-wasm/5800)._
