eProsima FastCDR is a C++ library that provides two serialization mechanisms. One is the standard CDR serialization mechanism, while the other is a faster implementation that modifies the standard.
eProsima FastCDR provides CMake scripts to build and install it. Also in eProsima you can find packages for Linux using autotools and binaries for Windows.