First attempt at CMake file

I have a CMake file which compiles the input, but the resulting executable barfs
when fed the input file. The internet was unhelpful at diagnosing this problem.