title: link ITK header files in C++ project
body: <p>I am sorry if my problem is trivial, but I tried many solutions and nothing works out. I am trying to run a simple HelloWorld program, and make an inclusion of header file of <code>ITK: itkImage.h</code>.</p>
  
  <p>Running <code>cmake ../src</code> to build the Makefile is okay.
  But running <code>make all</code> gives this error: <code>/src/HelloWorldTwo.cpp:10:22: fatal error: itkImage.h: No such file or directory
   #include "itkImage.h"</code></p>
  
  <p>Find below my <code>CMakeLists.txt</code> file and <code>HelloWorldTwo.cpp</code>
  What I am missing here? I tried to run make command from Eclipse and from command window, but no success. I am sure the <code>ITK_DIR</code> contains <code>ITKConfig.cmake</code>, that's why <code>cmake</code> is okay!</p>
  
  <p>Thank you!</p>
  
  <p>CMakeLists.txt:</p>
  
  <pre><code>cmake_minimum_required(VERSION 2.8)
  project(HelloWorldTwo)
  # Find ITK.
  set(ITK_DIR "/home/usr/itk/lib/cmake/ITK-4.13")
  find_package(ITK REQUIRED)
  include(${ITK_USE_FILE})
  add_executable(HelloWorldTwo HelloWorldTwo.cpp)
  target_link_libraries(HelloWorldTwo ${ITK_LIBRARIES})
  </code></pre>
  
  <p>HelloWorldTwo.cpp:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "itkImage.h"
  using namespace std;
  int main() {
      cout &lt;&lt; "Hello World!!!" &lt;&lt; endl; // prints Hello World!!!
      return 0;
  }
  </code></pre>
  
  <p>Debugging the variables in CMakeLists.txt:</p>
  
  <p>-- ITK_DIR: /home/usr/itk/lib/cmake/ITK-4.13</p>
  
  <p>-- ITK_LIBRARIES: itkdouble-conversionitksysitkvnl_algoitkvnlitkv3p_netlibitknetlibitkvclITKCommonitkNetlibSlatecITKStatisticsITKTransformITKLabelMapITKMeshitkzlibITKMetaIOITKSpatialObjectsITKPathITKQuadEdgeMeshITKIOImageBaseITKOptimizersITKPolynomialsITKBiasCorrectionITKBioCellITKDICOMParserITKEXPATITKIOXMLITKIOSpatialObjectsITKFEMgdcmDICTgdcmMSFFITKznzITKniftiioITKgiftiiohdf5_cpp-statichdf5-staticITKIOBMPITKIOBioRadITKIOBrukerITKIOCSVITKIOGDCMITKIOIPLITKIOGEITKIOGIPLITKIOHDF5itkjpegITKIOJPEGitktiffITKIOTIFFITKIOLSMitkminc2ITKIOMINCITKIOMRCITKIOMeshITKIOMetaITKIONIFTIITKNrrdIOITKIONRRDitkpngITKIOPNGITKIOSiemensITKIOStimulateITKTransformFactoryITKIOTransformBaseITKIOTransformHDF5ITKIOTransformInsightLegacyITKIOTransformMatlabITKIOVTKITKKLMRegionGrowingitklbfgsITKOptimizersv4itkopenjpegITKVTKITKWatershedsITKReviewITKVideoCoreITKVideoIOITKVtkGlue</p>