CLion, Build files not generated correctly

Hi!
I’ma a newbie in plugin programming and C++.
I’m desperately trying to generate a new project to begin coding/learning, but I can’t manage to make it work with CLion.
I generated the project using JUCE, then add the Code::Blocks, Linux Makefile and XCode exporters (as i read in the CLion-Beta exporter).
The problem is when the IDE starts generating the project from the cmake file, it seems to not be able to found some files… This is the message i receive:

CMake Error at CMakeLists.txt:2834 (add_executable):

  • Cannot find source file:*

  • …/…/…/…/juce/juce_audio_plugin_client/juce_audio_plugin_client_Standalone.cpp*

  • Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm*

  • .hpp .hxx .in .txx*

CMake Error at CMakeLists.txt:18 (add_library):

  • Cannot find source file:*

  • …/…/…/…/juce/juce_audio_basics/audio_play_head/juce_AudioPlayHead.h*

  • Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm*

  • .hpp .hxx .in .txx*

CMake Error at CMakeLists.txt:2834 (add_executable):

  • No SOURCES given to target: STANDALONE_PLUGIN*

CMake Error at CMakeLists.txt:18 (add_library):

  • No SOURCES given to target: SHARED_CODE*

CMake Generate step failed. Build files cannot be regenerated correctly.

It also doesn’t seem to be able to import the “source” folder…

Does anyone know what i’m missing?
Thanks

I had the problem as well, but I found a solution. You need to open your projucer project and then left under “modules” the path will probably will be marked red as in not found. You can either select “Use global path” to each of the modules listed left or enter the path to you Juce modules directory yourself. If you’re using Juce as an Git submodule you might want to use the secong option, because who knows what’s up with different Juce installations.

Lastly just press at the CLion button in the toolbar and you’re good to go!