Converting to cmake, added unit tests, handle input file beside stdin.
Add build to ignore