[Cmake] Added ForEach command
Ken Martin
ken.martin at kitware.com
Wed Jul 25 16:55:08 EDT 2001
I added a for each command, only tested on linux so far. For
example...
FOREACH ( tfile
ContinuousClose2D
TestCityBlockDistance
TestAnisotropicDiffusion2D
TestAnisotropicDiffusion3D
TestFFT
TestAccumulate
TestAllBlends
TestAllBlendsFloat
TestAllFlips
TestAllLogic
TestAllMaskBits
TestAllShrinks
TestGradient
TestGradientMagnitude
)
ADD_TEST(${tfile}-image ${VTK_EXECUTABLE}
${VTK_SOURCE_DIR}/Common/Testing/Tcl/rtImageTest.tcl
${VTK_SOURCE_DIR}/Imaging/Testing/Tcl/${tfile}.tcl
-D ${VTK_DATA_ROOT}
-V Baseline/Imaging/${tfile}.png
-A ${VTK_SOURCE_DIR}/Wrapping/Tcl
)
ENDFOREACH ( tfile )
More information about the CMake
mailing list