#Change PROJECT_NAME to the name of your project PROJECT(ParallelEDT) #include some macros from another file... INCLUDE(${CMAKE_SOURCE_DIR}/IJMacros.txt) #The following lines are required to use Dart ENABLE_TESTING() INCLUDE(Dart) #Declare any external dependencies that your project may have here. #examples include: ITK, VTK, JPEG, PNG, OpenGL, ZLIB, Perl, Java #If you're not sure what name to use, look in the Modules directory of your #cmake install and check that a file named Find(Package).cmake exists 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) #Set any libraries that your project depends on. #examples: ITKCommon, VTKRendering, etc SET(Libraries ITKBasicFilters ITKIO ) #the following block of code is an example of how to build an executable in #cmake. Unmodified, it will add an executable called "MyExe" to the project. #MyExe will be built using the files MyClass.h and MyClass.cxx, and it will #be linked to all the libraries you specified above. #You can build more than one executable per project SET(SignedMaurerParallelDistanceMapImageFilter1DTest "SignedMaurerParallelDistanceMapImageFilter1DTest" ) ADD_EXECUTABLE(${SignedMaurerParallelDistanceMapImageFilter1DTest} ${SignedMaurerParallelDistanceMapImageFilter1DTest}) TARGET_LINK_LIBRARIES(${SignedMaurerParallelDistanceMapImageFilter1DTest} ${Libraries}) SET(SignedMaurerParallelDistanceMapImageFilter2DTest "SignedMaurerParallelDistanceMapImageFilter2DTest" ) ADD_EXECUTABLE(${SignedMaurerParallelDistanceMapImageFilter2DTest} ${SignedMaurerParallelDistanceMapImageFilter2DTest}) TARGET_LINK_LIBRARIES(${SignedMaurerParallelDistanceMapImageFilter2DTest} ${Libraries}) SET(SignedMaurerParallelDistanceMapImageFilter3DTest "SignedMaurerParallelDistanceMapImageFilter3DTest" ) ADD_EXECUTABLE(${SignedMaurerParallelDistanceMapImageFilter3DTest} ${SignedMaurerParallelDistanceMapImageFilter3DTest}) TARGET_LINK_LIBRARIES(${SignedMaurerParallelDistanceMapImageFilter3DTest} ${Libraries}) SET(SignedMaurerParallelDistanceMapImageFilter4DTest "SignedMaurerParallelDistanceMapImageFilter4DTest" ) ADD_EXECUTABLE(${SignedMaurerParallelDistanceMapImageFilter4DTest} ${SignedMaurerParallelDistanceMapImageFilter4DTest}) TARGET_LINK_LIBRARIES(${SignedMaurerParallelDistanceMapImageFilter4DTest} ${Libraries}) SET(SignedMaurerParallelDistanceMapImageFilter3DTiming "SignedMaurerParallelDistanceMapImageFilter3DTiming" ) ADD_EXECUTABLE(${SignedMaurerParallelDistanceMapImageFilter3DTiming} ${SignedMaurerParallelDistanceMapImageFilter3DTiming}) TARGET_LINK_LIBRARIES(${SignedMaurerParallelDistanceMapImageFilter3DTiming} ${Libraries}) ADD_TEST(Run1 ${SignedMaurerParallelDistanceMapImageFilter3DTest} ${CMAKE_SOURCE_DIR}/3D_cube_32.mhd ${CMAKE_BINARY_DIR}/out1.mhd) ADD_TEST(CompareImage1 ImageCompare ${CMAKE_BINARY_DIR}/out1.mhd ${CMAKE_SOURCE_DIR}/3D_cube_32_out.mhd) ADD_TEST(Run2 ${SignedMaurerParallelDistanceMapImageFilter3DTest} ${CMAKE_SOURCE_DIR}/3D_sphere_32.mhd ${CMAKE_BINARY_DIR}/out2.mhd) ADD_TEST(CompareImage2 ImageCompare ${CMAKE_BINARY_DIR}/out2.mhd ${CMAKE_SOURCE_DIR}/3D_sphere_32_out.mhd) ADD_TEST(Run3 ${SignedMaurerParallelDistanceMapImageFilter1DTest} ${CMAKE_SOURCE_DIR}/1D_line_1000.mhd ${CMAKE_BINARY_DIR}/out3.mhd) ADD_TEST(CompareImage2 ImageCompare ${CMAKE_BINARY_DIR}/out3.mhd ${CMAKE_SOURCE_DIR}/1D_line_1000_out.mhd) ADD_TEST(Run4 ${SignedMaurerParallelDistanceMapImageFilter2DTest} ${CMAKE_SOURCE_DIR}/2D_square_180.mhd ${CMAKE_BINARY_DIR}/out4.mhd) ADD_TEST(CompareImage2 ImageCompare ${CMAKE_BINARY_DIR}/out4.mhd ${CMAKE_SOURCE_DIR}/2D_square_180_out.mhd) ADD_TEST(Run5 ${SignedMaurerParallelDistanceMapImageFilter4DTest} ${CMAKE_SOURCE_DIR}/4D_hypercube_12.mhd ${CMAKE_BINARY_DIR}/out5.mhd) ADD_TEST(CompareImage2 ImageCompare ${CMAKE_BINARY_DIR}/out5.mhd ${CMAKE_SOURCE_DIR}/4D_hypercube_12_out.mhd)