Geant4 and Eclipse building problem (missing header files)


I have successfully built and run the example B1 with cmake through the terminal on my mac. It works fine.

Now I tried using Eclipse in order to build and run the projects more conveniently. I set the path to the include directory of Geant4 (also root6). But when I try to build the example I get the following error:

10:57:59 **** Incremental Build of configuration Default for project B1 ****
make all 
Building file: ../src/
Invoking: GCC C++ Compiler
g++ -I/Users/.../Geant4_new/geant4-install/include/Geant4 -I/Users/.../root6.18/root6.18-install/include -O2 -g -Wall -c -fmessage-length=0 -MMD -MP -MF"src/B1ActionInitialization.d" -MT"src/B1ActionInitialization.o" -o "src/B1ActionInitialization.o" "../src/"
../src/ fatal error: 'B1ActionInitialization.hh' file not found
#include "B1ActionInitialization.hh"
1 error generated.
make: *** [src/B1ActionInitialization.o] Error 1
"make all" terminated with exit code 2. Build might be incomplete.

10:58:00 Build Failed. 2 errors, 0 warnings. (took 524ms)

What am I missing?