# This project is designed to be built outside the Insight source tree. PROJECT(Segmentation) # Find ITK. FIND_PACKAGE(ITK REQUIRED) IF(ITK_FOUND) INCLUDE(${ITK_USE_FILE}) ENDIF(ITK_FOUND) ENABLE_TESTING() ADD_EXECUTABLE(Segmentation Segmentation.cxx ) TARGET_LINK_LIBRARIES(Segmentation ITKCommon) TARGET_LINK_LIBRARIES(Segmentation ITKIO) SET(CurrentExe "ImageCompare") ADD_EXECUTABLE(${CurrentExe} ImageCompare.cxx) TARGET_LINK_LIBRARIES(ImageCompare ITKCommon) TARGET_LINK_LIBRARIES(ImageCompare ITKIO) ADD_TEST(CreateImage Segmentation) ADD_TEST(CompareImage ImageCompare ${CMAKE_SOURCE_DIR}/Segment066.mhd ${CMAKE_SOURCE_DIR}/SegBaseline066.mhd)