add cross compilation build folder
define macro to support cmake compilation.
Implement cmake