From Klaus' wiki
CPPUnit is a C++ unit tester
To install cpp unit download the package from sourceforge.org  in the download section.
Ensure that Graphviz and phydot is installed (use yum to install them if not).
Unpack the tar-ball.
cd cppunit-1.12.1 # if that is the current version number. sudo ./configure sudo make # if no errors in configure sudo make install # if no errors in previous make