2 PKGCONFIG(cppunit _CppUnitIncDir _CppUnitLinkDir _CppUnitLinkFlags _CppUnitCflags)
4 FIND_PATH(CPPUNIT_INCLUDE_DIR cppunit/TestCase.h
10 FIND_LIBRARY(CPPUNIT_LIBRARIES cppunit
16 IF (CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARIES)
17 SET(CPPUNIT_FOUND TRUE)
18 ENDIF (CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARIES)
21 IF (NOT CppUnit_FIND_QUIETLY)
22 MESSAGE(STATUS "Found CppUnit: ${CPPUNIT_LIBRARIES}")
23 ENDIF (NOT CppUnit_FIND_QUIETLY)
25 IF (CppUnit_FIND_REQUIRED)
26 MESSAGE(FATAL_ERROR "Could not find CppUnit")
27 ENDIF (CppUnit_FIND_REQUIRED)