Generalize cpp SOURCES file extension tests.
Generalize cpp SOURCES file extension tests.

libtetcoin/libtetcoin-build,libmetrocoin/libmetrocoin-build,libmetrocoin/libmetrocoin-build,libtetcoin/libtetcoin-build,libjetcoin/libjetcoin-build,libjetcoin/libjetcoin-build