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 -GNinja ../CastXMLSuperbuild
ninja
This requires ninja, which comes with recent
Visual Studio on Windows, can be installed on macOS with brew install ninja,
and can be installed with the ninja-build package in most Linux package
managers.
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.