## Include some macros INCLUDE(${CMAKE_SOURCE_DIR}/IJMacros.txt) ## Declare the project name PROJECT(ConfidenceConnectedSegmentation) ## The following lines enable testing and include Dart ENABLE_TESTING() INCLUDE(Dart) ## The only required package is ITK SET(Required_Packages ITK) #this foreach loads all of the packages that you specified as required. #It shouldn't need to be modified. FOREACH(Package ${Required_Packages}) LOADPACKAGE(${Package}) ENDFOREACH(Package) ## This project will link with ITKCommon and ITKIO libraries SET(Libraries ITKCommon ITKIO) ## Build the SegmentVentricle executable SET(CurrentExe "ConfidenceConnectedSegmentation") ADD_EXECUTABLE(${CurrentExe} ConfidenceConnectedSegmentation.cxx) TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) ## Build the ImageCompare executable SET(CurrentExe "ImageCompare") ADD_EXECUTABLE(${CurrentExe} ImageCompare.cxx) TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries}) ADD_TEST(SegmentationConfidenceConnected ConfidenceConnectedSegmentation ${CMAKE_SOURCE_DIR}/Normal018-T2.mha ${CMAKE_SOURCE_DIR}/output.mha ${CMAKE_SOURCE_DIR}/output.png 103.5 129.5 67.0) ## Add the image compare test ADD_TEST(CompareImage ImageCompare ${CMAKE_SOURCE_DIR}/base.png ${CMAKE_SOURCE_DIR}/output.png)