Install

Prerequisites

All that libunittest needs is a C++11 compliant compiler and an implementation of the C++11 standard library. libunittest compiles with g++ (≥4.6), clang++ (≥3.2), icc (≥14), Visual C++ (≥2013), and other C++11 compliant compilers. It is successfully tested on Linux, MacOSX, FreeBSD, Solaris, Cygwin, and MS Visual Studio.

Install from source in a Unix-like shell

Download a source distribution, unpack the tar-ball, and enter the directory: tar xfz libunittest-XXX.tar.gz
cd libunittest-XXX
where XXX denotes some version string. libunittest uses autotools so just do: ./configure
make
make install
You might want to run make check to ensure that everything's working as expected.

Install from source in MS Visual Studio

Download a source distribution, unpack the tar-ball, and create a new Visual Studio project for building a static library, say you name it libunittest. Now add libunittest's src\lib path to the list of VC++ include directories in the project properties. Then simply drag all libunittest sources (those right under src\lib) into the "Source Files" folder of your Visual Studio project. You can now build the library.

In order to actually build your test application you should create another Visual Studio project for building a console application. Again add src\lib to the list of VC++ include directories. In order to make the libunittest library you previously built available you need to add its directory to the list of VC++ library directories, so add something like Projects\libunittest\Debug. The last thing you need is tell the linker the name of the library which means adding libunittest.lib under "Input" and "Additional Dependencies". You're now ready to build your test application.

Install from package

Check the download page for available packages of libunittest.