begin of cmake-ification