Added a platform check cmake file for future platform checking.