Support CMAKE_C_FLAGS, CMAKE_CXX_FLAGS for individual libraries.
This is intended as a developer only feature, where maintainers of modules can add cflags that only apply to that module.
The patch will check CMAKE_C_FLAGS_${name}, CMAKE_CXX_FLAGS_${name} and use them if they're defined.
So if you want to add extra flags to BMesh for example, define CMAKE_C_FLAGS_BF_BMESH in the CMakeCache.txt.
This means a developer could use some strict warnings but add exceptions for libraries where its not useful.
Submitting for feedback, can include if its handy.