First commit: use of cmake, before refactoring.