Your first ITK program.
hello-itk.cxx:
#include "itkImage.h"
int main()
{
  typedef itk::Image< char, 2 >  ImageType;
  ImageType::Pointer image = ImageType::New();
  std::cout << "Hello World ITK !" << std::endl;
  std::cout << image << std::endl;
  return EXIT_SUCCESS;
}
CMakeLists.txt:
  cmake_minimum_required( VERSION 2.8 )
  enable_testing()
  find_package( ITK REQUIRED )
  include( ${ITK_USE_FILE} )
  add_executable( hello-itk hello-itk.cxx )
  target_link_libraries( hello-itk ${ITK_LIBRARIES} )
  add_test( hello-itk-test hello-itk )