temporary fixed cmake system with some magick