PROJECT(Mask) FIND_PACKAGE(ITK) IF(ITK_FOUND) INCLUDE(${ITK_USE_FILE}) ELSE(ITK_FOUND) MESSAGE(FATAL_ERROR "ITK not found. Please set ITK_DIR.") ENDIF(ITK_FOUND) ADD_EXECUTABLE(Mask Mask.cxx) TARGET_LINK_LIBRARIES(Mask ITKIO)