Added in version 3.8.
Set the Xcode explicitFileType attribute on its reference to a target. CMake computes a default based on target type but can be told explicitly with this property.
explicitFileType
See also XCODE_PRODUCT_TYPE.
XCODE_PRODUCT_TYPE