1. /***************************************************************************
  2.  *   Copyright (c) Johannes Perl                                           *
  3.  *   All rights reserved.                                                  *
  4.  *                                                                         *
  5.  *   This program is free software; you can redistribute it and/or modify  *
  6.  *   it under the terms of the GNU General Public License as published by  *
  7.  *   the Free Software Foundation; either version 2 of the License, or     *
  8.  *   (at your option) any later version.                                   *
  9.  *                                                                         *
  10.  ***************************************************************************/
  11.  
  12. #CMakeLists.txt
  13. #\author: Johannes Perl
  14.  
  15. PROJECT(bp2d)
  16.  
  17. cmake_minimum_required(VERSION 2.6)
  18.  
  19. #######
  20. # ITK #
  21. #######
  22.  
  23. FIND_PACKAGE(ITK)
  24. IF(ITK_FOUND)
  25.   INCLUDE(${ITK_USE_FILE})
  26. ELSE(ITK_FOUND)
  27.   MESSAGE(FATAL_ERROR
  28.           "ITK not found. Please set ITK_DIR.")
  29. ENDIF(ITK_FOUND)
  30.  
  31. ADD_EXECUTABLE(bp2d bp2d.h bp2d.cpp)
  32.  
  33. TARGET_LINK_LIBRARIES(bp2d ITKCommon ITKIO)
  34.