Use uORB messaging outside of PX4

Is there a way to compile uORB messages for use in another project? I only need uORB message header files necessary for using specific message structures.

This is how they’re generated in PX4. https://github.com/PX4/Firmware/blob/master/cmake/common/px4_metadata.cmake#L67