modified cmake file to cross compilation