SPM target has exclude parameter which related to sources and resources files. However, it seems that now it is impossible to exclude specific header.

I'm speaking from the C point of view, where some files could be "excluded" from public header folder, because they are platform-dependent.