[Cmake] Looping over numbers
John Biddiscombe
john.biddiscombe@mirada-solutions.com
Tue, 4 Feb 2003 16:43:49 -0000
Hi again,
Is there an easier way to loop over numbers than this
FOREACH (testnumber 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20)
ADD_TEST(=20
# name of the test as seen on the dashboard=09
TestPetBodySegmentation${testnumber}
# the executable to run=20
${EXECUTABLE_OUTPUT_PATH}/TestPetBodySegmentation.exe=20
# args
"Test Case ${testnumber}/test_case_${testnumber}"=20
"Test Case ${testnumber}/test_case_${testnumber}_info.txt"
"Test Case ${testnumber}/test_case_${testnumber}_baseline"
)
ENDFOREACH (testnumber)=20
It works fine, but is there a
FOREACH (testnumber {1..20} )
Type syntax I can use? If not shall I have a go at adding one?
JB