I am using mingw64 with cygwin. So automagic discovery will not work. I have tried
Project Properties / C/C++ General / Preprocessor Include Paths / GNU C++ CDT