added cmake script for building the tool