# - Find cppunit# Find the native cppunit includes and library## CPPUNIT_INCLUDE_DIR - where to find cppunit/Test.h, etc.# CPPUNIT_LIBRARIES - List of libraries when using cppunit.# CPPUNIT_FOUND - True if cppunit found.IF(CPPUNIT_INCLUDE_DIR)# Already in cache, be silentSET(CPPUNIT_FIND_QUIETLYTRUE)ENDIF(CPPUNIT_INCLUDE_DIR)FIND_PATH(CPPUNIT_INCLUDE_DIRcppunit/Test.h)SET(CPPUNIT_NAMEScppunit)FIND_LIBRARY(CPPUNIT_LIBRARYNAMES${CPPUNIT_NAMES})# handle the QUIETLY and REQUIRED arguments and set CPPUNIT_FOUND to TRUE if # all listed variables are TRUEINCLUDE(FindPackageHandleStandardArgs)FIND_PACKAGE_HANDLE_STANDARD_ARGS(CppUnitDEFAULT_MSGCPPUNIT_LIBRARYCPPUNIT_INCLUDE_DIR)IF(CPPUNIT_FOUND)SET(CPPUNIT_LIBRARIES${CPPUNIT_LIBRARY})ELSE(CPPUNIT_FOUND)SET(CPPUNIT_LIBRARIES)ENDIF(CPPUNIT_FOUND)MARK_AS_ADVANCED(CPPUNIT_LIBRARYCPPUNIT_INCLUDE_DIR)