cmake doesnt seem to like macros with a really huge argument list
make test creation a function too
Merge pull request #330 from voxelinc/speedup_cmake

cmake doesnt seem to like macros with a really huge argument list