Mercurial > thymian
comparison 3rdparty/vmime/cmake/FindCppUnit.cmake @ 0:a4671277546c tip
created the repository for the thymian project
| author | ferencd |
|---|---|
| date | Tue, 17 Aug 2021 11:19:54 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:a4671277546c |
|---|---|
| 1 # | |
| 2 # http://root.cern.ch/viewvc/trunk/cint/reflex/cmake/modules/FindCppUnit.cmake | |
| 3 # | |
| 4 # - Find CppUnit | |
| 5 # This module finds an installed CppUnit package. | |
| 6 # | |
| 7 # It sets the following variables: | |
| 8 # CPPUNIT_FOUND - Set to false, or undefined, if CppUnit isn't found. | |
| 9 # CPPUNIT_INCLUDE_DIR - The CppUnit include directory. | |
| 10 # CPPUNIT_LIBRARY - The CppUnit library to link against. | |
| 11 | |
| 12 FIND_PATH(CPPUNIT_INCLUDE_DIR cppunit/Test.h) | |
| 13 FIND_LIBRARY(CPPUNIT_LIBRARY NAMES cppunit) | |
| 14 | |
| 15 IF (CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARY) | |
| 16 SET(CPPUNIT_FOUND TRUE) | |
| 17 ENDIF (CPPUNIT_INCLUDE_DIR AND CPPUNIT_LIBRARY) | |
| 18 | |
| 19 IF (CPPUNIT_FOUND) | |
| 20 | |
| 21 # show which CppUnit was found only if not quiet | |
| 22 IF (NOT CppUnit_FIND_QUIETLY) | |
| 23 MESSAGE(STATUS "Found CppUnit: ${CPPUNIT_LIBRARY}") | |
| 24 ENDIF (NOT CppUnit_FIND_QUIETLY) | |
| 25 | |
| 26 ELSE (CPPUNIT_FOUND) | |
| 27 | |
| 28 # fatal error if CppUnit is required but not found | |
| 29 IF (CppUnit_FIND_REQUIRED) | |
| 30 MESSAGE(FATAL_ERROR "Could not find CppUnit") | |
| 31 ENDIF (CppUnit_FIND_REQUIRED) | |
| 32 | |
| 33 ENDIF (CPPUNIT_FOUND) | |
| 34 |
