# JUCE CMake - Add juce modules files to IDE projects

**URL:** <https://forum.juce.com/t/juce-cmake-add-juce-modules-files-to-ide-projects/41469>\
**Category:** General JUCE discussion\
**Created:** [August 28, 2020, 5:11pm UTC](https://forum.juce.com/t/juce-cmake-add-juce-modules-files-to-ide-projects/41469 "2020-08-28T17:11:40Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![eyalamir](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/eyalamir/32/2978_2.png) [@eyalamir](https://forum.juce.com/u/eyalamir)\
**Post date:** [September 3, 2020, 4:38pm UTC](https://forum.juce.com/t/juce-cmake-add-juce-modules-files-to-ide-projects/41469/16 "2020-09-03T16:38:45Z")

</div>

Thank you so much @reuk for putting an effort into it!

So far I’ve tested it in an Xcode generated project and it looks great.  
For future reference, I needed to add the following to my top level CMakeLists.txt, which is OK but personally I think should be opt-out rather than opt-in:

```auto
#Adds all the module sources so they appear correctly in the IDE
set_property(GLOBAL PROPERTY USE_FOLDERS YES)
option(JUCE_ENABLE_MODULE_SOURCE_GROUPS "Enable Module Source Groups" ON)

```

---

_[View the full topic](https://forum.juce.com/t/juce-cmake-add-juce-modules-files-to-ide-projects/41469)._
