This builds CastXML and its dependencies (LLVM/Clang) with CMake's ExternalProject module. It is a cross-platform way to build CastXML.
This can be built like any other CMake project. For example:
git clone https://github.com/CastXML/CastXMLSuperbuild.git mkdir CastXMLSuperbuild-build cd CastXMLSuperbuild-build cmake ../CastXMLSuperbuild make
The resulting castxml executable will be located at CastXMLSuperbuild-build/castxml/bin/castxml.
The resulting binary builds for Linux, Mac OSX, and Windows are available here.