CppUnit

Installation

Sous Ubuntu 18.4

  • installer les packages adéquats.
#installer le packet cppunit
sudo apt-get install libcppunit-dev


A noter que la dernière version ne contient pas de fichier cppunit.m4 pour autotools.
Il faut adapter le fichier configure.ac
#remplacer la ligne
AM_PATH_CPPUNIT(1.13.2)
#par la ligne
PKG_CHECK_MODULES(CPPUNIT, cppunit >= 1.13.2)




#example
git clone https://github.com/JLTRY/cppunit-money.git


  • compiler et lancer l'example
aclocal -I /usr/share/aclocal
autoconf
automake -a
./configure
make check