Use Makefile include path resolution only for CustomMake projects.

It doesn't make sense at all to run "make" to compute include
directories for projects that don't use Makefiles.
Even if some project managers indirectly use Makefiles and can't
compute include directories themselves, then it should be fixed there,
and not workarounded by calling MakeFile include path resolver,
which btw works only with very simple Makefiles, and as a result,
at least for me, it almost never succeeds.

REVIEW: 119613
Add CMAKE_VERSION variable and expected failing unit tests.

The qt5_use_modules macro is not found at all, since the version
check against CMAKE_VERSION fails. Our code does not expand the
variable and then of course fails the version check.

CCBUG: 337907
Properly expand version variables before doing comparisons.

This fixes our CMake support to properly support qt5_use_modules.

BUG: 337907
Merge branch '4.7'
Expand variables before evaluating conditions.

CMake does the same as manual testing shows, so we must do the same.
I noticed this issue when debugging another include path error which
is now resolved.
Merge branch '4.7'