title: How can I include interesting directory at specific target at cmake?
body: <p><br></p>
  
  <p>I have a question about Cmake.<br>
  When call target "helloAll", it build sub-target Hello and Hello2.<br>
  But each Hello and Hello2 should include other directory.<br>
  add_library() can include specific objects, but include_directory can not.<br>
  Do you have any solution?</p>
  
  <p>Thank you very much!!</p>
  
  <pre><code>add_custom_target( helloAll DEPENDS Hello Hello2 )
  
  #When building Hello include Src/inc
  include_directories( Src/inc ) 
  
  #When building Hello include Src/inc2
  include_directories( Src/inc2 ) 
  
  add_library( Hello Src/hello )
  add_library( Hello2 Src/hello2 )
  
  message(STATUS "CMAKE_INCLUDE_CURRENT_DIR: ${CMAKE_INCLUDE_CURRENT_DIR}")
  
  build_command( buildCommand TARGET helloAll )
  message(STATUS "buildCommand: ${buildCommand}")
  </code></pre>