adding cmake files, a licence and some canonical tank code