title: Transitive target_include_directories on OBJECT libraries
body: <p>Here is snippet from make CMakeLists.txt:</p>
  
  <pre><code>add_library(foo-object OBJECT src/foo.cpp)
  target_include_directories(foo-object PUBLIC include)
  add_library(foo SHARED $&lt;TARGET_OBJECTS:${PROJECT_NAME}-object&gt;)
  add_library(foo_static STATIC $&lt;TARGET_OBJECTS:${PROJECT_NAME}-object&gt;)
  </code></pre>
  
  <p>Now, this all works fine, both libraries are generated. However I have a problem when I try to use it:</p>
  
  <pre><code>add_executable(bar src/main.cpp)
  target_link_libraries(bar foo)
  </code></pre>
  
  <p>Target <code>bar</code> doesn't compile, because include directories from foo-object are not propagated. If I add <code>target_include_directories</code> directly on <code>foo</code> as well, everything will compile fine.</p>
  
  <p>How can I make both <code>foo</code> and <code>foo_static</code> automatically use (and forward to stuff depending on them) include directories from <code>foo-object</code>?</p>