#name the project PROJECT(Segmentation) #find ITK, as a requirement FIND_PACKAGE(ITK REQUIRED) IF(ITK_FOUND) INCLUDE(${ITK_USE_FILE}) ENDIF(ITK_FOUND) #add the Segmentation executable ADD_EXECUTABLE(Segmentation segmentation.cpp) #link to the ITKAlgorithms and ITKIO libraries TARGET_LINK_LIBRARIES(Segmentation ITKAlgorithms ITKIO) #add the ImageCompare test executable ADD_EXECUTABLE(ImageCompare ImageCompare.cxx) #link to ITKCommon and ITKIO libraries TARGET_LINK_LIBRARIES(ImageCompare ITKCommon ITKIO)