ferencd@0: # ferencd@0: # http://root.cern.ch/viewvc/trunk/cint/reflex/cmake/modules/FindCppUnit.cmake ferencd@0: # ferencd@0: # - Find CppUnit ferencd@0: # This module finds an installed CppUnit package. ferencd@0: # ferencd@0: # It sets the following variables: ferencd@0: # CPPUNIT_FOUND - Set to false, or undefined, if CppUnit isn't found. ferencd@0: # CPPUNIT_INCLUDE_DIR - The CppUnit include directory. ferencd@0: # CPPUNIT_LIBRARY - The CppUnit library to link against. ferencd@0: ferencd@0: FIND_PATH(CPPUNIT_INCLUDE_DIR cppunit/Test.h) ferencd@0: FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit) ferencd@0: ferencd@0: IF (CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARY) ferencd@0: SET(CPPUNIT_FOUND TRUE) ferencd@0: ENDIF (CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARY) ferencd@0: ferencd@0: IF (CPPUNIT_FOUND) ferencd@0: ferencd@0: # show which CppUnit was found only if not quiet ferencd@0: IF (NOT CppUnit_FIND_QUIETLY) ferencd@0: MESSAGE(STATUS "Found CppUnit: ${CPPUNIT_LIBRARY}") ferencd@0: ENDIF (NOT CppUnit_FIND_QUIETLY) ferencd@0: ferencd@0: ELSE (CPPUNIT_FOUND) ferencd@0: ferencd@0: # fatal error if CppUnit is required but not found ferencd@0: IF (CppUnit_FIND_REQUIRED) ferencd@0: MESSAGE(FATAL_ERROR "Could not find CppUnit") ferencd@0: ENDIF (CppUnit_FIND_REQUIRED) ferencd@0: ferencd@0: ENDIF (CPPUNIT_FOUND) ferencd@0: