title: cmake framework target does not copy header or resource?
body: <p>I am trying to create an OS X framework using <a href="https://cmake.org" rel="noreferrer">cmake</a>. This is my <code>CMakeLists.txt</code> file:</p>
  
  <pre><code>project( Foo)
  
  cmake_minimum_required (VERSION 3.7)
  
  add_library( Foo SHARED
  foo.c
  )
  
  set_target_properties( Foo PROPERTIES
  FRAMEWORK TRUE
  RESOURCE "foo.md"
  PUBLIC_HEADER "foo.h"
  )
  </code></pre>
  
  <p>When I run <code>( mkdir build ; cd build ; cmake .. ; make)</code> a <code>Foo.framework</code> is generated, but the header and the resource do not appear in it. What am I missing ? (cmake version 3.7.1)</p>
  
  <hr>
  
  <p>How to reproduce. Save above CMakeLists.txt. Now execute:</p>
  
  <pre><code>#!/bin/sh
  
  echo "int version = 1;" &gt; foo.c
  touch foo.h
  touch foo.md
  ( mkdir build ; cd build ; cmake .. ; make)
  ls -R build/Foo.framework/
  </code></pre>