Added in version 3.1.
Set the Xcode explicitFileType attribute on its reference to a source file. CMake computes a default based on file extension but can be told explicitly with this property.
Xcode
explicitFileType
See also XCODE_LAST_KNOWN_FILE_TYPE.
XCODE_LAST_KNOWN_FILE_TYPE