replacing old makefile system with cmake (work in progress)