old cmake support (maybe not ready)