Added cmake build target and conditional logic to build based on system OS
Added cmake build target and conditional logic to build based on system OS

adamnovak/xg,adamnovak/xg,ekg/xg,ekg/xg,yoheirosen/xg,yoheirosen/xg