Add CMake macros. Move code generator to "host-tools" directory