Add cmake support for devices