I am looking for a possibility to check by cmake that some external files (that is, files that are not under build/install control by cmake) are read-only.<