# Find all available modules from GroupIO

**URL:** <https://discourse.itk.org/t/find-all-available-modules-from-groupio/351>\
**Category:** Uncategorized\
**Tags:** io, cmake\
**Created:** [October 25, 2017, 3:08am UTC](https://discourse.itk.org/t/find-all-available-modules-from-groupio/351 "2017-10-25T03:08:29Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![phcerdan](https://discourse.itk.org/user_avatar/discourse.itk.org/phcerdan/32/286_2.png) [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Post date:** [October 25, 2017, 10:27pm UTC](https://discourse.itk.org/t/find-all-available-modules-from-groupio/351/6 "2017-10-25T22:27:36Z")

</div>

For completeness, this is what I have used based on @blowekamp suggestion.

I had to find\_package twice to import `ITK_MODULES_ENABLED`

```auto
find_package(ITK CONFIG REQUIRED)
set(use_itk_modules IsotropicWavelets )
foreach( mod IN LISTS ITK_MODULES_ENABLED)
  if( ${mod} MATCHES "IO")
    list(APPEND use_itk_modules ${mod})
  endif()
endforeach()
find_package(ITK COMPONENTS ${use_itk_modules} REQUIRED)
#include_directories(${ITK_INCLUDE_DIRS}) # Not needed
include(${ITK_USE_FILE})

```

---

_[View the full topic](https://discourse.itk.org/t/find-all-available-modules-from-groupio/351)._
