MITK_CREATE_MODULE_TESTS()

if(BUILD_TESTING AND MODULE_IS_ENABLED) 
	      mitkAddCustomModuleTest("mitkToFImageDownsamplingFilterTest" #name of the test
     "mitkToFImageDownsamplingFilterTest" #call the corresponding test
     "PMDCamCube2_MF0_IT0_20Images_DistanceImage.pic") #input parameter(s)
	      mitkAddCustomModuleTest("mitkToFImageDownsamplingFilterTest" #name of the test
     "mitkToFImageDownsamplingFilterTest" #call the corresponding test
     "PMDCamCube2_MF0_IT0_1Images_DistanceImage.pic") #input parameter(s)
endif(BUILD_TESTING AND MODULE_IS_ENABLED)
MITK_CREATE_MODULE_TESTS()

if(BUILD_TESTING AND MODULE_IS_ENABLED) 
  mitkAddCustomModuleTest(mitkToFImageDownsamplingFilterTest_20 mitkToFImageDownsamplingFilterTest PMDCamCube2_MF0_IT0_20Images_DistanceImage.pic)
  mitkAddCustomModuleTest(mitkToFImageDownsamplingFilterTest_1 mitkToFImageDownsamplingFilterTest PMDCamCube2_MF0_IT0_1Images_DistanceImage.pic)
endif(BUILD_TESTING AND MODULE_IS_ENABLED)

Simplify CMake syntax, remove double test name
Simplify CMake syntax, remove double test name
