support CMAKE_<LANG>_... variables

#197 , solve the LANG issue first,

the PROJECT is harder, will solve it later after this pull request.
You should probably use the "beginning of string" archor here and in the other regexps.