Using loop in bats/CMakeLists.txt.