Commit 9427fc79 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

TNL can be build without libcppunit-dev.

parent f7db8a2c
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -15,6 +15,13 @@
 *                                                                         *
 ***************************************************************************/

#ifndef TNL_UNIT_TESTS_H
#define TNL_UNIT_TESTS_H

#include <tnlConfig.h>

#ifdef HAVE_CPPUNIT

#include <cppunit/ui/text/TestRunner.h>

#include <debug/tnlDebug.h>
@@ -143,3 +150,18 @@ int main( int argc, char* argv[] )
   runner.run();
   return 0;
}

#else // HAVE_CPPUNIT

#include <iostream>

using namespace std;

int main( int argc, char* argv[] )
{
   cerr << "UNIT TESTS ARE DISABLED." << endl;
   return 0;
}
#endif // HAVE_CPPUNIT

#endif // TNL_UNIT_TESTS_H
+2 −0
Original line number Diff line number Diff line
@@ -8,6 +8,8 @@

@HAVE_CUSPARSE@

@HAVE_CPPUNIT@

#define TNL_CONFIG_DIRECTORY @configDirectory@

#define TNL_SOURCE_DIRECTORY @sourceDirectory@