Add support for building and testing with cmake
20 files changed