# How to build ITK dll?

**URL:** https://discourse.itk.org/t/how-to-build-itk-dll/1594
**Category:** Beginner Questions
**Created:** [February 12, 2019, 2:20pm UTC](https://discourse.itk.org/t/how-to-build-itk-dll/1594 "2019-02-12T14:20:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Armando](https://discourse.itk.org/user_avatar/discourse.itk.org/armando/32/449_2.png) [@Armando](https://discourse.itk.org/u/Armando)
#### Post date: [February 12, 2019, 2:20pm UTC](https://discourse.itk.org/t/how-to-build-itk-dll/1594/1 "2019-02-12T14:20:16Z")

</div>

Hi. I need to build the dinamic link libraries of ITK. My OS is Windows 10 and my IDE is Visual Studio 2010. Thanks.

---

<div class="post-metadata">

### Author: ![jhlegarreta](https://discourse.itk.org/user_avatar/discourse.itk.org/jhlegarreta/32/476_2.png) [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)
#### Post date: [February 12, 2019, 2:27pm UTC](https://discourse.itk.org/t/how-to-build-itk-dll/1594/2 "2019-02-12T14:27:35Z")

</div>

Hi @Armando,  
it suffices to set the `BUILD_SHARED_LIBS` CMake flag to `ON`. This is independent of your OS and development environment.

It is highly recommended to use [CMake](https://cmake.org/) to generate your project. It will save you a lot of time.

Enjoy ITK !  
JON HAITZ

---

<div class="post-metadata">

### Author: ![Armando](https://discourse.itk.org/user_avatar/discourse.itk.org/armando/32/449_2.png) [@Armando](https://discourse.itk.org/u/Armando)
#### Post date: [February 12, 2019, 2:29pm UTC](https://discourse.itk.org/t/how-to-build-itk-dll/1594/3 "2019-02-12T14:29:39Z")

</div>

Hi. Thanks. I am doing that right now.
